File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
src/frontend/apps/impress/src/features/docs/doc-management/libs Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 6
6
push :
7
7
branches :
8
8
- ' main'
9
+ - ' feature/collab-long-polling'
9
10
tags :
10
11
- ' v*'
11
12
pull_request :
Original file line number Diff line number Diff line change @@ -166,6 +166,8 @@ services:
166
166
- env.d/development/common
167
167
ports :
168
168
- " 4444:4444"
169
+ volumes :
170
+ - ./src/frontend/servers/y-provider:/home/frontend/servers/y-provider
169
171
170
172
kc_postgresql :
171
173
image : postgres:14.3
Original file line number Diff line number Diff line change @@ -52,6 +52,14 @@ export class CollaborationProvider extends HocuspocusProvider {
52
52
let url = '' ;
53
53
if ( isHocuspocusProviderConfigurationUrl ( configuration ) ) {
54
54
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 ;
55
63
}
56
64
57
65
super ( configuration ) ;
You can’t perform that action at this time.
0 commit comments