Skip to content

Commit

Permalink
start working on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vikkio88 committed Feb 2, 2020
1 parent 00d55d4 commit 8ab2327
Show file tree
Hide file tree
Showing 7 changed files with 766 additions and 3 deletions.
4 changes: 3 additions & 1 deletion server/game/Server.js
Expand Up @@ -2,7 +2,9 @@ const { MESSAGES } = require('../const');

class Server {
constructor(config) {
this.roomFactory = config.roomFactory || null;
const { roomFactory } = config;
if (!roomFactory) throw Error('Empty roomFactory');
this.roomFactory = roomFactory;
this.rooms = new Map();
this.connections = new Map();
this.connectionRooms = new Map();
Expand Down

0 comments on commit 8ab2327

Please sign in to comment.