Skip to content

Commit d26da26

Browse files
committed
for-testing
Firefox with websocket Other without
1 parent 09bea4f commit d26da26

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-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:

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ services:
166166
- env.d/development/common
167167
ports:
168168
- "4444:4444"
169+
volumes:
170+
- ./src/frontend/servers/y-provider:/home/frontend/servers/y-provider
169171

170172
kc_postgresql:
171173
image: postgres:14.3

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
@@ -52,6 +52,14 @@ export class CollaborationProvider extends HocuspocusProvider {
5252
let url = '';
5353
if (isHocuspocusProviderConfigurationUrl(configuration)) {
5454
url = configuration.url;
55+
let withWS = true;
56+
if (
57+
new URLSearchParams(window.location.search).get('withoutWS') === 'true'
58+
) {
59+
withWS = false;
60+
}
61+
62+
configuration.url = !withWS ? 'ws://localhost:6666' : configuration.url;
5563
}
5664

5765
super(configuration);

0 commit comments

Comments
 (0)