File tree Expand file tree Collapse file tree 4 files changed +6
-57
lines changed Expand file tree Collapse file tree 4 files changed +6
-57
lines changed Original file line number Diff line number Diff line change 44
55from traitlets import Instance , Type
66from .handlers import RouteHandler , FileIDIndexHandler
7- from .websockets import GlobalAwarenessWebsocket , YRoomWebsocket
7+ from .websockets import YRoomWebsocket
88from .rooms .yroom_manager import YRoomManager
99from .outputs import OutputsManager , outputs_handlers
1010
@@ -17,8 +17,6 @@ class RtcExtensionApp(ExtensionApp):
1717 # dummy handler that verifies the server extension is installed;
1818 # # this can be deleted prior to initial release.
1919 (r"jupyter-rtc-core/get-example/?" , RouteHandler ),
20- # global awareness websocket
21- (r"api/collaboration/room/JupyterLab:globalAwareness/?" , GlobalAwarenessWebsocket ),
2220 # # ydoc websocket
2321 (r"api/collaboration/room/(.*)" , YRoomWebsocket ),
2422 # # handler that just adds compatibility with Jupyter Collaboration's frontend
Original file line number Diff line number Diff line change 11from .clients import YjsClient , YjsClientGroup
22from .yroom_ws import YRoomWebsocket
3- from .global_awareness_ws import GlobalAwarenessWebsocket
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -41,10 +41,11 @@ def prepare(self):
4141 self .room_id = request_path .strip ("/" ).split ("/" )[- 1 ]
4242
4343 # Verify the file ID contained in the room ID points to a valid file.
44- fileid = self .room_id .split (":" )[- 1 ]
45- path = self .fileid_manager .get_path (fileid )
46- if not path :
47- raise HTTPError (404 , f"No file with ID '{ fileid } '." )
44+ if self .room_id != "JupyterLab:globalAwareness" :
45+ fileid = self .room_id .split (":" )[- 1 ]
46+ path = self .fileid_manager .get_path (fileid )
47+ if not path :
48+ raise HTTPError (404 , f"No file with ID '{ fileid } '." )
4849
4950
5051 def open (self , * _ , ** __ ):
You can’t perform that action at this time.
0 commit comments