From d76a87df7bc24d49c3bdfade534265b52981d8e9 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 15 Apr 2014 09:02:56 +0200 Subject: [PATCH] Arbitrary message through the signaling channel Re-add support for arbitrary message on the signaling channel, it hasn't been merged in upstream SimpleWebRTC yet --- public/js/simplewebrtc.bundle.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/simplewebrtc.bundle.js b/public/js/simplewebrtc.bundle.js index ca2e346..7a18694 100644 --- a/public/js/simplewebrtc.bundle.js +++ b/public/js/simplewebrtc.bundle.js @@ -5114,6 +5114,8 @@ Peer.prototype.handleMessage = function (message) { this.parent.emit('mute', {id: message.from, name: message.payload.name}); } else if (message.type === 'unmute') { this.parent.emit('unmute', {id: message.from, name: message.payload.name}); + } else { + this.parent.emit(message.type, {id: message.from, payload: message.payload}); } }; @@ -8626,4 +8628,4 @@ exports.groups = function (lines) { },{}]},{},[1])(1) }); -; \ No newline at end of file +;