@soundworks/core 3.3.3 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/client/Client.js CHANGED
@@ -179,6 +179,10 @@ class Client {
179
179
  return this._ready;
180
180
  }
181
181
 
182
+ async stop() {
183
+ this.socket.terminate();
184
+ }
185
+
182
186
  }
183
187
 
184
188
  ;
package/client/Socket.js CHANGED
@@ -315,6 +315,15 @@ class Socket {
315
315
  removeAllBinaryListeners(channel) {
316
316
  this._removeAllListeners(this._binaryListeners, channel);
317
317
  }
318
+ /**
319
+ * Immediately close the 2 sockets
320
+ */
321
+
322
+
323
+ terminate() {
324
+ this.ws.close();
325
+ this.binaryWs.close();
326
+ }
318
327
 
319
328
  }
320
329
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soundworks/core",
3
- "version": "3.3.3",
3
+ "version": "3.4.0",
4
4
  "description": "full-stack javascript framework for distributed audio visual experiences on the web",
5
5
  "authors": [
6
6
  "Benjamin Matuszewski",