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

@socialgorithm/game-server

Package Overview
Dependencies
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@socialgorithm/game-server - npm Package Compare versions

Comparing version 0.0.5 to 0.1.0

yarn.lock

6

package.json
{
"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);

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