From 5b5b55735e0ae6f1ecd5bac1c8a3d59c661b9ffe Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sat, 20 Jun 2020 14:29:45 -0500 Subject: [PATCH] Add reconnect todo --- src/client.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client.nim b/src/client.nim index 40dfb27..7dddae7 100644 --- a/src/client.nim +++ b/src/client.nim @@ -48,6 +48,7 @@ proc handleHeartbeat(client: DiscordClient) {.async.} = proc getIdentifyPacket(client: DiscordClient): JsonNode = return %* { "op": ord(DiscordOpCode.opIdentify), "d": { "token": client.token, "properties": { "$os": system.hostOS, "$browser": "NimCord", "$device": "NimCord" } } } +#TODO: Reconnecting. It should be pretty easy tbh. proc handleWebsocketPacket(client: DiscordClient) {.async.} = while true: var packet: tuple[opcode: Opcode, data: string]