File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class RtcExtensionApp(ExtensionApp):
2020 # global awareness websocket
2121 # (r"api/collaboration/room/JupyterLab:globalAwareness/?", GlobalAwarenessWebsocket),
2222 # # ydoc websocket
23- # (r"api/collaboration/room/(.*)", YRoomWebsocket)
23+ (r"api/collaboration/room/(.*)" , YRoomWebsocket )
2424 ]
2525
2626 yroom_manager_class = Type (
Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ def prepare(self):
2727 request_path : str = self .request .path
2828 self .room_id = request_path .strip ("/" ).split ("/" )[- 1 ]
2929
30+ # TODO: remove this once globalawareness is implemented
31+ if self .room_id == "JupyterLab:globalAwareness" :
32+ raise HTTPError (404 )
33+
3034 # Verify the file ID contained in the room ID points to a valid file.
3135 fileid = self .room_id .split (":" )[- 1 ]
3236 path = self .fileid_manager .get_path (fileid )
You can’t perform that action at this time.
0 commit comments