playsocketjs 1.3.0 → 1.3.1

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.
@@ -2623,6 +2623,7 @@ function requireServer () {
2623
2623
  kick(clientId, reason) {
2624
2624
  const client = this.#clients.get(clientId);
2625
2625
  if (client) {
2626
+ client.willfulDisconnect = true;
2626
2627
  client.send(encode({ type: 'kicked', reason }), { binary: true });
2627
2628
  client.close();
2628
2629
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playsocketjs",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "WebSocket wrapper for creating simple multiplayer systems with ease.",
5
5
  "module": "dist/playsocket-client.js",
6
6
  "exports": {