diff --git a/django/api.py b/django/api.py index e14d397..10ca759 100644 --- a/django/api.py +++ b/django/api.py @@ -16,6 +16,7 @@ from csgo.client import CSGOClient from csgo.sharecode import decode as decode_sharecode from steam.client import SteamClient +from steam.core.connection import WebsocketConnection from steam.steamid import SteamID from django.conf import settings @@ -247,6 +248,7 @@ def __init__(self): self.steam_started = False self.steam = SteamClient() + self.steam.connection = WebsocketConnection() self.csgo = CSGOClient(self.steam) self.steam.on('error', self._error) diff --git a/requirements.txt b/requirements.txt index 64889cf..b24e35c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -42,13 +42,14 @@ requests==2.28.1 scipy==1.14.0 six==1.16.0 sqlparse==0.5.1 -steam==1.4.4 +steam @ git+https://github.com/njbooher/steam.git@e5b73f9 tqdm==4.66.4 typing_extensions==4.12.2 tzdata==2024.1 urllib3==1.26.12 usd-core==24.8 vdf==3.4 +wsproto==1.2.0 yarl==1.9.4 zipp==3.19.2 zope.event==5.0