aboutsummaryrefslogtreecommitdiffstats
path: root/pysite
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-05-08 11:43:01 +0100
committerGravatar Gareth Coles <[email protected]>2018-05-08 11:43:01 +0100
commit5cb7fdb10ba6688233e49e07c0e4601632c8fdf0 (patch)
treec5d2c503da44d8fe2f78a36964e8f2395d62aecb /pysite
parentLinting (diff)
Add manager to WS class
Diffstat (limited to 'pysite')
-rw-r--r--pysite/websockets.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pysite/websockets.py b/pysite/websockets.py
index 19f9bf83..d72f44b7 100644
--- a/pysite/websockets.py
+++ b/pysite/websockets.py
@@ -74,6 +74,8 @@ class WS:
if not cls.path or not cls.name:
raise RuntimeError("Websockets must have both `path` and `name` defined")
+ cls.manager = manager
+
def handle(socket: WebSocket):
"""
Wrap the current WS class, dispatching events to it as necessary. We're using gevent, so there's