Socket
Socket
Sign inDemoInstall

cagey-client-messenger

Package Overview
Dependencies
1
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.4 to 0.0.5

21

lib/index.js

@@ -85,6 +85,12 @@ 'use strict';

const serialized = this._serialize(...args);
let serialized;
try {
serialized = this._serialize(...args);
} catch (error) {
this.log.error({ error }, '[client-messenger] error serializing and sending message');
return;
}
this.log.debug('[client-messenger] sending message: %s', serialized);
this._send(serialized);

@@ -99,5 +105,12 @@ } else {

const args = this._deserialize(serialized);
let args;
this.emit(...args);
try {
args = this._deserialize(serialized);
} catch (error) {
this.log.error({ error, serialized }, '[client-messenger] error deserializing and emitting message');
return;
}
this.emitAsync(...args);
}

@@ -104,0 +117,0 @@ }

2

package.json
{
"name": "cagey-client-messenger",
"version": "0.0.4",
"version": "0.0.5",
"description": "Client/server messaging for the Cagey game framework",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc