multiplayer fix
This commit is contained in:
@@ -2,6 +2,7 @@ FROM node:slim
|
||||
|
||||
EXPOSE 3002
|
||||
ENV PORT 3002
|
||||
ENV HOST 0.0.0.0
|
||||
|
||||
RUN npm install -g y-websocket
|
||||
|
||||
|
||||
@@ -151,7 +151,6 @@
|
||||
|
||||
const wsProtocol = BROWSER && window.location.protocol == 'https:' ? 'wss' : 'ws'
|
||||
|
||||
console.log(window.location.host)
|
||||
wsProvider = new WebsocketProvider(
|
||||
`${wsProtocol}://${window.location.host}/ws_mp/`,
|
||||
$workspaceStore + '/' + path ?? 'no-room-name',
|
||||
|
||||
Reference in New Issue
Block a user