Skip to content

Commit

Permalink
Replace ; with . as separator in peerId part 3
Browse files Browse the repository at this point in the history
  • Loading branch information
DoubleMalt committed Jul 9, 2022
1 parent 37ed308 commit 00fa39e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/jam-core/connections/Mediasoup.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default function Mediasoup({swarm}) {
);
if (isConsumer) {
let {peerId, producerId, id, kind, rtpParameters} = consumerPayload;
[peerId] = peerId.split(';');
[peerId] = peerId.split('.');
receiveTransport
?.consume({id, producerId, kind, rtpParameters})
.then(consumer => {
Expand Down
2 changes: 1 addition & 1 deletion ui/lib/signalws.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default async function signalws({
if (topic === 'opened' || topic === 'closed') return;
let payload = d ?? {};
if (p) {
let [peerId, connId] = p.split(';');
let [peerId, connId] = p.split('.');
payload.peerId = peerId;
payload.connId = connId;
}
Expand Down
2 changes: 1 addition & 1 deletion ui/lib/swarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ async function connect(swarm, roomId, myPeerId) {
});
});
on(hub, 'remove-peer', id => {
let [peerId, connId] = id.split(';');
let [peerId, connId] = id.split('.');
if (getPeer(swarm, peerId) === undefined) return;
removeConnection({swarm, peerId, connId});
});
Expand Down

0 comments on commit 00fa39e

Please sign in to comment.