diff options
author | 2018-05-08 11:43:01 +0100 | |
---|---|---|
committer | 2018-05-08 11:43:01 +0100 | |
commit | 5cb7fdb10ba6688233e49e07c0e4601632c8fdf0 (patch) | |
tree | c5d2c503da44d8fe2f78a36964e8f2395d62aecb /pysite | |
parent | Linting (diff) |
Add manager to WS class
Diffstat (limited to 'pysite')
-rw-r--r-- | pysite/websockets.py | 2 |
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 |