|
@ -517,7 +517,7 @@ class DiscordWebSocket: |
|
|
|
|
|
|
|
|
def _can_handle_close(self): |
|
|
def _can_handle_close(self): |
|
|
code = self._close_code or self.socket.close_code |
|
|
code = self._close_code or self.socket.close_code |
|
|
return code not in (1000, 4004, 4010, 4011) |
|
|
return code not in (1000, 4004, 4010, 4011, 4012, 4013, 4014) |
|
|
|
|
|
|
|
|
async def poll_event(self): |
|
|
async def poll_event(self): |
|
|
"""Polls for a DISPATCH event and handles the general gateway loop. |
|
|
"""Polls for a DISPATCH event and handles the general gateway loop. |
|
|