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.
- package/client/index.js +0 -7
- 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
|
}
|