mirror of
https://github.com/discordjs/discord.js.git
synced 2026-06-15 19:08:20 +00:00
fix: emit resume event, silent disconnects, error event param (#3192)
* src: Fix shardResumed event not being emitted * docs: Document Client#error again * src: Fix onError due to incorrect typings * src: handle onError properly for both uws and ws * src: Try to fix silent disconnects when using uWs * fix(WebSocketShard): uws emits plain objects, not errors Emitting line of code: https://github.com/discordjs/uws/blob/39aa429f94d9668608f69848b3a84db3a3e92914/src/uws.js#L80-L83 Listener attaching is here: https://github.com/discordjs/uws/blob/master/src/uws.js#L128 For reference, found a clue here: https://github.com/discordjs/discord.js/issues/1528
This commit is contained in:
Vendored
+1
-1
@@ -1339,7 +1339,7 @@ declare module 'discord.js' {
|
||||
private connect(): Promise<void>;
|
||||
private onOpen(): void;
|
||||
private onMessage(event: MessageEvent): void;
|
||||
private onError(error: ErrorEvent): void;
|
||||
private onError(error: ErrorEvent | object): void;
|
||||
private onClose(event: CloseEvent): void;
|
||||
private onPacket(packet: object): void;
|
||||
private setHelloTimeout(time?: number): void;
|
||||
|
||||
Reference in New Issue
Block a user