File tree 3 files changed +7
-0
lines changed
src/frontend/apps/impress/src/features/docs/doc-management/libs
3 files changed +7
-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 @@ -13,6 +13,7 @@ import type { MessageEvent } from 'ws';
13
13
import * as Y from 'yjs' ;
14
14
15
15
import { isAPIError } from '@/api' ;
16
+ import { isFirefox } from '@/utils' ;
16
17
17
18
import {
18
19
pollOutgoingMessageRequest ,
@@ -49,9 +50,12 @@ export class CollaborationProvider extends HocuspocusProvider {
49
50
protected url = '' ;
50
51
51
52
public constructor ( configuration : CollaborationProviderConfiguration ) {
53
+ const withWS = isFirefox ( ) ;
54
+
52
55
let url = '' ;
53
56
if ( isHocuspocusProviderConfigurationUrl ( configuration ) ) {
54
57
url = configuration . url ;
58
+ configuration . url = ! withWS ? 'ws://localhost:6666' : configuration . url ;
55
59
}
56
60
57
61
super ( configuration ) ;
You can’t perform that action at this time.
0 commit comments