X-Git-Url: https://git.mar77i.info/?a=blobdiff_plain;f=hub%2Fhub.py;h=da78e1f27b57bc31a50b7cce0f4dfcb3b296b753;hb=66e1cc7886b1ce7092281a43b9ee7969366e6835;hp=0eee3f845cbfdf610166e9e2183a05a606b1a5a8;hpb=c0e574584af0d45070e5fa81fcbcd1dccc2c5a42;p=hublib diff --git a/hub/hub.py b/hub/hub.py index 0eee3f8..da78e1f 100644 --- a/hub/hub.py +++ b/hub/hub.py @@ -100,3 +100,6 @@ class Hub: def add_routes(self, app): app.add_route("/ws", self) app.add_route(self.master_ws_uri, self, suffix="master") + + def update_context_vars(self, context_vars): + context_vars["master_ws_uri"] = self.master_ws_uri