fix: decode voice ws data as json

This commit is contained in:
Amish Shah
2019-05-28 14:51:41 +01:00
parent b5aff6d120
commit 8652e47c14
2 changed files with 3 additions and 3 deletions

View File

@@ -136,7 +136,7 @@ class VoiceWebSocket extends EventEmitter {
*/
onMessage(event) {
try {
return this.onPacket(WebSocket.unpack(event.data));
return this.onPacket(WebSocket.unpack(event.data, 'json'));
} catch (error) {
return this.onError(error);
}