To determine the websocket frame type you can use the following comparisons:
e.data instanceof ArrayBuffer
e.data instanceof Blob
typeof e.data === "string"
To determine the websocket frame type you can use the following comparisons:
e.data instanceof ArrayBuffer
e.data instanceof Blob
typeof e.data === "string"