blob.arrayBuffer is not a function

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 = as Blob;
        const buffer = await blob.arrayBuffer();
        const uint8ArrayNew = new Uint8Array(buffer);

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.

My mistake , is ArrayBuffer.
Thank you.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.