feat: added optional REACT_APP_WS_SERVER_URL for forks usecases (#4889)

Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
Milos Vetesnik 2022-03-09 12:13:59 +01:00 committed by GitHub
parent 4d5f00ff08
commit 19056d635b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 0 deletions

View file

@ -360,6 +360,7 @@ class CollabWrapper extends PureComponent<Props, CollabState> {
try {
const socketServerData = await getCollabServer();
this.portal.socket = this.portal.open(
socketIOClient(socketServerData.url, {
transports: socketServerData.polling