Comparing version 0.7.1 to 0.7.2
{ | ||
"name": "ataraxia", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "P2P messaging over mesh networks", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -32,2 +32,7 @@ 'use strict'; | ||
setSocket(s) { | ||
if(this.socket) { | ||
// Request that the previous socket is destroyed | ||
this.socket.destroy(); | ||
} | ||
this.socket = s; | ||
@@ -100,2 +105,7 @@ | ||
write(type, payload) { | ||
if(! this.socket) { | ||
this.debug('No socket but tried to send', type, 'with data', payload); | ||
return; | ||
} | ||
this.debug('Sending', type, 'with data', payload); | ||
@@ -102,0 +112,0 @@ const data = msgpack.encode([ String(type), payload ]); |
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
28900
901