Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

colyseus.js

Package Overview
Dependencies
Maintainers
1
Versions
261
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colyseus.js - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

4

lib/index.js

@@ -27,4 +27,2 @@ 'use strict';

var _room2 = _interopRequireDefault(_room);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -88,3 +86,3 @@

if (!this.rooms[roomName]) {
this.rooms[roomName] = _room2.default.create(this, roomName);
this.rooms[roomName] = (0, _room.createRoom)(this, roomName);
}

@@ -91,0 +89,0 @@

@@ -8,3 +8,3 @@ 'use strict';

});
exports.create = create;
exports.createRoom = createRoom;

@@ -47,4 +47,4 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function create(client, name) {
function createRoom(client, name) {
return new Room(client, name);
}
{
"name": "colyseus.js",
"version": "0.1.5",
"version": "0.1.6",
"description": "JavaScript client for Colyseus MMO Game Server",

@@ -5,0 +5,0 @@ "keywords": ["mmo", "game", "client", "networking", "websockets"],

@@ -6,3 +6,3 @@ import WebSocketClient from 'websocket.js'

import protocol from './protocol'
import room from './room'
import { createRoom } from './room'

@@ -44,3 +44,3 @@ class Colyseus extends WebSocketClient {

if (!this.rooms[ roomName ]) {
this.rooms[ roomName ] = room.create(this, roomName)
this.rooms[ roomName ] = createRoom(this, roomName)
}

@@ -47,0 +47,0 @@

@@ -23,4 +23,4 @@ var EventEmitter = require('events').EventEmitter

export function create (client, name) {
export function createRoom (client, name) {
return new Room(client, name)
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc