playsocketjs 1.1.11 → 1.1.12

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.
@@ -2495,6 +2495,9 @@ class PlaySocket {
2495
2495
  // Signal to the server that it can immediately remove this user
2496
2496
  if (this.#socket.readyState === WebSocket.OPEN) this.#sendToServer({ type: 'disconnect' });
2497
2497
  this.#socket.close();
2498
+ this.#socket.onmessage = null;
2499
+ this.#socket.onerror = null;
2500
+ this.#socket.onclose = null;
2498
2501
  this.#socket = null;
2499
2502
 
2500
2503
  // Trigger events
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playsocketjs",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "WebSocket wrapper for creating simple multiplayer systems with ease.",
5
5
  "module": "dist/playsocket-client.js",
6
6
  "exports": {