Skip to content

Commit

Permalink
Merge pull request #2100 from Azmoria/Fix---issue-with-peer-connectio…
Browse files Browse the repository at this point in the history
…n,-set-an-id-for-peerjs-on-creation

Fix - issue with peer connection, set an id for peerjs on creation
  • Loading branch information
Azmoria authored May 1, 2024
2 parents 7138b87 + 3d8dde4 commit b449fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PeerManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class PeerManager {
enabled = false;

/** @return {Peer} - our private reference to the peerjs object */
peer = new Peer();
peer = new Peer(`AboveVTT-${window.gameId}-${uuid()}`);

/** @return {PeerConnection[]} List of peers that we are connecting/connected to */
connections = [];
Expand Down

0 comments on commit b449fad

Please sign in to comment.