mirror of https://gitlab.com/litecord/litecord.git
parent
0853a9fce6
commit
75c79a6503
|
|
@ -12,6 +12,7 @@ class GatewayState:
|
|||
|
||||
Used to store all information tied to the websocket's session.
|
||||
"""
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
self.session_id = kwargs.get('session_id', gen_session_id())
|
||||
self.seq = kwargs.get('seq', 0)
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ def decode_etf(data):
|
|||
|
||||
class GatewayWebsocket:
|
||||
"""Main gateway websocket logic."""
|
||||
|
||||
def __init__(self, sm, db, ws, **kwargs):
|
||||
self.state_manager = sm
|
||||
self.db = db
|
||||
|
|
|
|||
Loading…
Reference in New Issue