Skip to content

Commit ec59e9e

Browse files
committed
feat: import ws to client
1 parent 79c5a44 commit ec59e9e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

yaylib/client.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
import aiohttp
3434

35-
from . import __version__, config, utils
35+
from . import __version__, config, utils, ws
3636
from .api.auth import AuthApi
3737
from .api.call import CallApi
3838
from .api.chat import ChatApi
@@ -228,15 +228,13 @@ def generate(self, jwt_required=False) -> Dict[str, str]:
228228

229229

230230
# pylint: disable=too-many-public-methods
231-
class Client(
232-
# ws.WebSocketInteractor
233-
):
231+
class Client(ws.WebSocketInteractor):
234232
"""yaylib のエントリーポイント"""
235233

236234
def __init__(
237235
self,
238236
*,
239-
# intents: Optional[ws.Intents] = None,
237+
intents: Optional[ws.Intents] = None,
240238
proxy_url: Optional[str] = None,
241239
timeout=30,
242240
max_retries=3,
@@ -249,6 +247,8 @@ def __init__(
249247
state: Optional[State] = None,
250248
loglevel=logging.INFO,
251249
) -> None:
250+
super().__init__(self, intents)
251+
252252
self.__proxy_url = proxy_url
253253
self.__timeout = timeout
254254
self.__session = None

0 commit comments

Comments
 (0)