aboutsummaryrefslogtreecommitdiff
path: root/discord/http.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/http.py')
-rw-r--r--discord/http.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/discord/http.py b/discord/http.py
index 39fcaed0..a9da4267 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -111,6 +111,17 @@ class HTTPClient:
if self.__session.closed:
self.__session = aiohttp.ClientSession(connector=self.connector)
+ async def ws_connect(self, url):
+ kwargs = {
+ 'proxy_auth': self.proxy_auth,
+ 'proxy': self.proxy,
+ 'max_msg_size': 0,
+ 'timeout': 30.0,
+ 'autoclose': False,
+ }
+
+ return await self.__session.ws_connect(url, **kwargs)
+
async def request(self, route, *, files=None, **kwargs):
bucket = route.bucket
method = route.method