fix websocket message.data not message

This commit is contained in:
xdrm-brackets 2018-04-06 01:12:17 +02:00
parent 0b3d093cb2
commit 31b5dccd23
1 changed files with 4 additions and 4 deletions

View File

@ -56,10 +56,10 @@ export default class AudioManager{
/* (10) Manage websocket responses */
this.ws.onmessage = function(_blob){
console.warn(`received`, _blob);
this.ws.onmessage = function(_msg){
console.warn(`received`, _msg.data);
if( !(_blob instanceof Blob) )
if( !(_msg.data instanceof Blob) )
return console.warn('NIQUE');
let fr = new FileReader();
@ -69,7 +69,7 @@ export default class AudioManager{
self.receive(bu16).bind(self);
};
fr.readAsArrayBuffer(_blob);
fr.readAsArrayBuffer(_msg.data);
}