OptionalbinaryPer the WebSocket spec this defaults to "blob", and workerd honors that
default — wrapWebSocket sets it to "arraybuffer" when present, since
the envelope parser needs bytes synchronously and cannot await
Blob.arrayBuffer().
Optionalcode: numberOptionalreason: string
The subset of the Workers
WebSocketinterface thatwrapWebSocketneeds. Kept narrow and independent of@cloudflare/workers-typesso it can be satisfied by a plain mock object in unit tests, while a real accepted WorkersWebSocketalso satisfies it structurally.