Puts the server socket into the accepted state so it can send and receive.
Subscribes to a socket event.
Event name
Event listener
Closes the socket.
Optionalcode: number
RFC 6455 close code
Optionalreason: string
Close reason
Sends a text or binary frame.
The frame payload
The server half of a Workers
WebSocketPair. Workers sockets are driven withaddEventListenerafter an explicitaccept(), not withon*properties.Since
0.2.0