deno.com
property WebSocket.binaryType

Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:

Can be set, to change how binary data is returned. The default is "blob".

const ws = new WebSocket("ws://localhost:8080");
ws.binaryType = "arraybuffer";

Type #