Hi everyone.
I need to use WebSocket to communicate with my server-side. Everything works well in the browser, but I have ‘blob.arrayBuffer is not a function’ in ios.
Here is my code:
public async onSocketMessage(event) {
let blob = event.data as Blob;
const buffer = await blob.arrayBuffer();
const uint8ArrayNew = new Uint8Array(buffer);
this.parseMessage(uint8ArrayNew);
}
My server-side sends a Blob data type, then I need parse this blob to a response object. Please help me fix this problem. Is there any other way ?
Thank you so much.