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

@doomrooms/gameserver

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@doomrooms/gameserver - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

18

index.js
const EventEmitter = require('eventemitter3');
const { Connection, Room } = require('@doomrooms/common');
const { Connection, PipeConnection, Room } = require('@doomrooms/common');

@@ -29,13 +29,11 @@ class Gameserver extends EventEmitter {

const [ player, privateId ] = args;
const pipeConn = new this.options.protocol(
this.options.host,
this.options.pipePort,
);
pipeConn.connect().then(() => {
return pipeConn.sendRaw(privateId + '\n');
}).then(() => {
this.emit(event, player, pipeConn);
const pipeConn = new PipeConnection({
host: this.options.host,
port: this.options.pipePort,
protocol: this.options.protocol,
id: privateId,
});
this.emit(event, player, pipeConn);
} else {
this.emit(event, args);
this.emit(event, ...args);
}

@@ -42,0 +40,0 @@

{
"name": "@doomrooms/gameserver",
"version": "0.0.1",
"version": "0.0.2",
"description": "",

@@ -13,5 +13,5 @@ "main": "index.js",

"dependencies": {
"@doomrooms/common": "0.0.2",
"@doomrooms/common": "0.0.3",
"eventemitter3": "^3.1.0"
}
}
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