mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
Fix reconnect when using WS (#952)
* Fix reconnect when using WS * Add disconnect status (fix reconnect with WS)
This commit is contained in:
@@ -216,6 +216,7 @@ class WebSocketManager extends EventEmitter {
|
||||
eventClose(event) {
|
||||
this.emit('close', event);
|
||||
this.client.clearInterval(this.client.manager.heartbeatInterval);
|
||||
this.status = Constants.Status.DISCONNECTED;
|
||||
/**
|
||||
* Emitted whenever the client websocket is disconnected
|
||||
* @event Client#disconnect
|
||||
|
||||
Reference in New Issue
Block a user