angelia.io 3.4.82 → 3.4.83

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.
Files changed (2) hide show
  1. package/client/index.js +0 -7
  2. package/package.json +1 -1
package/client/index.js CHANGED
@@ -280,13 +280,6 @@ export default class Client {
280
280
  // to force disconnect
281
281
  this.on('disconnect', this.disconnect)
282
282
 
283
- // to try to close the connection nicely
284
- window.addEventListener(
285
- 'unload',
286
- () => this.disconnect(true),
287
- true,
288
- )
289
-
290
283
  // to send messages fast without waiting for the connection
291
284
  shouldConnect && this.connect()
292
285
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angelia.io",
3
- "version": "3.4.82",
3
+ "version": "3.4.83",
4
4
  "description": "WebSockets Server and Client API for node.js and the browser, with rooms support.",
5
5
  "author": "@titoBouzout @boredofnames",
6
6
  "license": "GPL",