@socialgorithm/game-server
Advanced tools
Comparing version 0.0.5 to 0.1.0
{ | ||
"name": "@socialgorithm/game-server", | ||
"version": "0.0.5", | ||
"version": "0.1.0", | ||
"description": "JS Game Server library", | ||
@@ -39,4 +39,6 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@types/socket.io": "^2.1.2" | ||
"@types/node": "^11.9.0", | ||
"@types/socket.io": "^2.1.2", | ||
"@types/socket.io-client": "^1.4.32" | ||
} | ||
} |
@@ -8,3 +8,3 @@ import * as http from "http"; | ||
export class GameServer { | ||
private socket: SocketIO.Server; | ||
public socket: SocketIO.Server; | ||
@@ -20,2 +20,6 @@ constructor(private inputBindings: GameInputBindings, private serverOptions?: ServerOptions) { | ||
this.socket.on('connection', () => { | ||
console.log('New connection'); | ||
}); | ||
this.socket.on(SOCKET_MESSAGE.START_GAME, this.inputBindings.startGame); | ||
@@ -22,0 +26,0 @@ this.socket.on(SOCKET_MESSAGE.PLAYER_MESSAGE, this.inputBindings.onPlayerMessage); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80771
22
224
3