Commit 25645140 authored by i317280's avatar i317280

fix: update

parent 59d387fa
......@@ -22,10 +22,6 @@ logger = logging.getLogger(__file__)
class BaseWebSocketHandler:
def __init__(self, *args, **kwargs):
self.clients = dict()
super().__init__(*args, **kwargs)
def app(self, app):
self.app = app
return self
......@@ -62,6 +58,10 @@ class BaseWebSocketHandler:
class SSHws(Namespace, BaseWebSocketHandler):
def __init__(self, *args, **kwargs):
self.clients = dict()
super().__init__(*args, **kwargs)
def on_connect(self):
self.clients[request.sid] = {
"cols": int(request.cookies.get('cols', 80)),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment