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
|
}
|