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
master
Daniel Berteaud 11 years ago
parent 59b77c5458
commit d76a87df7b
  1. 4
      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)
});
;
;

Loading…
Cancel
Save