ws delivers a completed socket already open, so onOpen fires immediately
rather than waiting for an event that will never arrive. Its close reason
arrives as a Buffer, and binary frames as a Buffer too — both are
Uint8Array subclasses, so the shared frame normalization handles them.
Binds a
wssocket's events to a sink.wsdelivers a completed socket already open, soonOpenfires immediately rather than waiting for an event that will never arrive. Itsclosereason arrives as aBuffer, and binary frames as aBuffertoo — both areUint8Arraysubclasses, so the shared frame normalization handles them.