mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
feat(ws): add additional info to wsError debug event (#434)
* feat(ws): better error debug message * Update src/ws/shard.ts Co-authored-by: Ayyan <ayyantee@gmail.com> Co-authored-by: Ayyan <ayyantee@gmail.com>
This commit is contained in:
+5
-2
@@ -67,8 +67,11 @@ export function createShard(
|
||||
}
|
||||
};
|
||||
|
||||
ws.onerror = ({ timeStamp }) => {
|
||||
eventHandlers.debug?.({ type: "wsError", data: { timeStamp } });
|
||||
ws.onerror = (errorEvent) => {
|
||||
eventHandlers.debug?.({
|
||||
type: "wsError",
|
||||
data: { shardID: basicShard.id, ...errorEvent },
|
||||
});
|
||||
};
|
||||
|
||||
ws.onmessage = ({ data: message }) => {
|
||||
|
||||
Reference in New Issue
Block a user