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 */
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue