Skip to content

Commit c096f35

Browse files
committed
for-testing
Firefox with websocket Other without
1 parent 597c9d4 commit c096f35

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/docker-hub.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
push:
77
branches:
88
- 'main'
9+
- 'feature/collab-long-polling'
910
tags:
1011
- 'v*'
1112
pull_request:

src/frontend/apps/impress/src/features/docs/doc-management/libs/CollaborationProvider.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,14 @@ export class CollaborationProvider extends HocuspocusProvider {
9595
let url = '';
9696
if (isHocuspocusProviderConfigurationUrl(configuration)) {
9797
url = configuration.url;
98+
let withWS = true;
99+
if (
100+
new URLSearchParams(window.location.search).get('withoutWS') === 'true'
101+
) {
102+
withWS = false;
103+
}
104+
105+
configuration.url = !withWS ? 'ws://localhost:6666' : configuration.url;
98106
}
99107

100108
super(configuration);

0 commit comments

Comments
 (0)