get voice sort of working

This commit is contained in:
Amish Shah
2016-10-24 14:26:24 +01:00
parent 9b3dd540ef
commit e13e2447d4
8 changed files with 81 additions and 15 deletions

View File

@@ -77,6 +77,7 @@ class VoiceWebSocket extends EventEmitter {
send(data) {
return new Promise((resolve, reject) => {
if (this.ws.readyState === WebSocket.OPEN) {
console.log('sending', data);
this.ws.send(data, null, error => {
if (error) {
reject(error);