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 @@ -18,7 +18,7 @@ class RtcExtensionApp(ExtensionApp):
1818 # global awareness websocket
1919 # (r"api/collaboration/room/JupyterLab:globalAwareness/?", GlobalAwarenessWebsocket),
2020 # # ydoc websocket
21- # (r"api/collaboration/room/(.*)", YRoomWebsocket)
21+ (r"api/collaboration/room/(.*)" , YRoomWebsocket )
2222 ]
2323
2424 def initialize (self ):
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