Update WebSocketShard.js

This commit is contained in:
Elysia
2025-03-11 21:15:05 +07:00
parent d2566d21f1
commit 93115a5b1e

View File

@@ -772,6 +772,7 @@ class WebSocketShard extends EventEmitter {
return;
}
this.debug(`[WebSocketShard] send packet '${JSON.stringify(data)}'`);
this.connection.send(WebSocket.pack(data), err => {
if (err) this.manager.client.emit(Events.SHARD_ERROR, err, this.id);
});