Skip to content

Commit 4ade958

Browse files
configured local ws from frontend
1 parent 1d47d9b commit 4ade958

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Frontend/src/App/CodeEditor/YJSCollaborationService.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export interface Message {
3030
}
3131

3232
class YjsCollaborationService {
33+
private readonly WS_URL = `${import.meta.env.VITE_BACKEND_WS_URL}/ws`;
3334
private doc: Y.Doc | null = null;
3435
private provider: WebsocketProvider | null = null;
3536
private fileSystemMap: Y.Map<FileNode[]> | null = null;
@@ -86,9 +87,7 @@ class YjsCollaborationService {
8687
this.doc = new Y.Doc();
8788

8889
this.provider = new WebsocketProvider(
89-
// "ws://localhost:4000/ws",
90-
// "ws://144.24.128.44:4000/ws",
91-
"wss://www.rtc-app.linkpc.net/ws",
90+
this.WS_URL,
9291
this.currentCodespaceId,
9392
this.doc
9493
);

0 commit comments

Comments
 (0)