Rewrite gateway to use aiohttp instead of websockets

This commit is contained in:
Rapptz
2020-07-25 09:59:38 -04:00
parent 45cb231161
commit b8154e365f
8 changed files with 97 additions and 92 deletions
-3
View File
@@ -27,7 +27,6 @@ DEALINGS IN THE SOFTWARE.
import asyncio
import datetime
import aiohttp
import websockets
import discord
import inspect
import logging
@@ -58,8 +57,6 @@ class Loop:
discord.ConnectionClosed,
aiohttp.ClientError,
asyncio.TimeoutError,
websockets.InvalidHandshake,
websockets.WebSocketProtocolError,
)
self._before_loop = None