To determine the websocket frame type you can use the following comparisons:
e.data instanceof ArrayBuffere.data instanceof Blobtypeof e.data === "string"
To determine the websocket frame type you can use the following comparisons:
e.data instanceof ArrayBuffere.data instanceof Blobtypeof e.data === "string"