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.
|
Used to store all information tied to the websocket's session.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
self.session_id = kwargs.get('session_id', gen_session_id())
|
self.session_id = kwargs.get('session_id', gen_session_id())
|
||||||
self.seq = kwargs.get('seq', 0)
|
self.seq = kwargs.get('seq', 0)
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ def decode_etf(data):
|
||||||
|
|
||||||
class GatewayWebsocket:
|
class GatewayWebsocket:
|
||||||
"""Main gateway websocket logic."""
|
"""Main gateway websocket logic."""
|
||||||
|
|
||||||
def __init__(self, sm, db, ws, **kwargs):
|
def __init__(self, sm, db, ws, **kwargs):
|
||||||
self.state_manager = sm
|
self.state_manager = sm
|
||||||
self.db = db
|
self.db = db
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue