diff --git a/package-lock.json b/package-lock.json index 31d1031dc..92019b5b4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@processmaker/modeler", - "version": "1.39.14", + "version": "1.39.15", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@processmaker/modeler", - "version": "1.39.14", + "version": "1.39.15", "dependencies": { "@babel/plugin-proposal-private-methods": "^7.12.1", "@fortawesome/fontawesome-free": "^5.11.2", diff --git a/package.json b/package.json index 642c99e6b..94f328abc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@processmaker/modeler", - "version": "1.39.14", + "version": "1.39.15", "scripts": { "serve": "vue-cli-service serve --mode development", "test:unit": "vue-cli-service test:unit", diff --git a/src/multiplayer/multiplayer.js b/src/multiplayer/multiplayer.js index 92762c0c9..fdadebefb 100644 --- a/src/multiplayer/multiplayer.js +++ b/src/multiplayer/multiplayer.js @@ -48,7 +48,7 @@ export default class Multiplayer { this.room = new Room(`room-${window.ProcessMaker.modeler.process.id}`); // Connect to websocket server - this.clientIO = io(process.env.VUE_APP_WEBSOCKET_PROVIDER, { transports: ['websocket', 'polling']}); + this.clientIO = io(window.ProcessMaker.multiplayer.host, { transports: ['websocket', 'polling']}); this.clientIO.on('connect', () => { // Join the room diff --git a/src/setup/globals.js b/src/setup/globals.js index 892435f4a..0dbba85b5 100644 --- a/src/setup/globals.js +++ b/src/setup/globals.js @@ -33,6 +33,9 @@ window.ProcessMaker = { navbar: { alerts: [], }, + multiplayer:{ + host: process.env.VUE_APP_WEBSOCKET_PROVIDER, + }, EventBus: new Vue(), apiClient: axios, alert(msg, variant, showValue = 60, stayNextScreen = false) { @@ -54,4 +57,5 @@ window.ProcessMaker = { id: 1, }, }, + };