1
0
mirror of https://github.com/dani/vroom.git synced 2024-06-02 05:21:39 +02:00

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
This commit is contained in:
Daniel Berteaud 2014-04-15 09:02:56 +02:00
parent 59b77c5458
commit d76a87df7b

View File

@ -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});
}
};