fix websocket message.data not message
This commit is contained in:
parent
0b3d093cb2
commit
31b5dccd23
|
@ -56,10 +56,10 @@ export default class AudioManager{
|
||||||
|
|
||||||
|
|
||||||
/* (10) Manage websocket responses */
|
/* (10) Manage websocket responses */
|
||||||
this.ws.onmessage = function(_blob){
|
this.ws.onmessage = function(_msg){
|
||||||
console.warn(`received`, _blob);
|
console.warn(`received`, _msg.data);
|
||||||
|
|
||||||
if( !(_blob instanceof Blob) )
|
if( !(_msg.data instanceof Blob) )
|
||||||
return console.warn('NIQUE');
|
return console.warn('NIQUE');
|
||||||
|
|
||||||
let fr = new FileReader();
|
let fr = new FileReader();
|
||||||
|
@ -69,7 +69,7 @@ export default class AudioManager{
|
||||||
self.receive(bu16).bind(self);
|
self.receive(bu16).bind(self);
|
||||||
};
|
};
|
||||||
|
|
||||||
fr.readAsArrayBuffer(_blob);
|
fr.readAsArrayBuffer(_msg.data);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue