Skip to content

Commit

Permalink
Merge pull request #1787 from ProcessMaker/bugfix/FOUR-13911
Browse files Browse the repository at this point in the history
FOUR-13911: Collaborative modeler is working in different servers and…
  • Loading branch information
ryancooley authored Jan 29, 2024
2 parents bffa672 + d2218ab commit 2595724
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/multiplayer/multiplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export default class Multiplayer {
this.#nodeIdGenerator = getNodeIdGenerator(this.modeler.definitions);
// Get the room name from the process id
const processId = window.ProcessMaker.modeler.process.uuid ?? window.ProcessMaker.modeler.process.id;
this.room = new Room(`room-${processId}`);
const appUrl = window.ProcessMaker.app?.url || '';
this.room = new Room(`room-${appUrl}-${processId}`);
this.inspector = new InspectorUtils(this.modeler, store);

// Connect to websocket server
Expand Down

0 comments on commit 2595724

Please sign in to comment.