Close the underlying source.
Readonly
headersheaders from the handshake request
Readonly
locallocal address of the connection (if available)
Read data from the underlying source into the provided Uint8Array, up to the length of the array, and return the number of bytes read.
If there are no bytes available currently, the implementation is supposed to wait until at least one byte is available, and only then resolve the promise. Resolving the promise with a zero-length Uint8Array is marking the end of the source.
Uint8Array containing the bytes that were read.
Readonly
remoteremote address of the connection (if available)
Readonly
urlURL of the handshake request
Write bytes to the underlying stream, resolving once the write is complete
a connection to a WebSocket server (not to be confused with client-side connection!)