Skip to content

Commit a387dee

Browse files
author
csturiale
committed
added roomName in createdPeer event
1 parent 9a7bbf6 commit a387dee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simplewebrtc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ SimpleWebRTC.prototype.joinRoom = function (name, cb) {
345345
offerToReceiveVideo: self.config.receiveMedia.offerToReceiveVideo
346346
}
347347
});
348-
self.emit('createdPeer', peer);
348+
self.emit('createdPeer', peer, self.roomName);
349349
peer.start();
350350
}
351351
}

0 commit comments

Comments
 (0)