Represents a web socket connection to another endpoint.
Implementations must be safe to call concurrently.
Sends a web socket close frame with the given code and reason, and closes the connection.
Sends a web socket binary frame.
Sends a web socket text frame.
If false, sending frames should not be attempted and will likely throw an exception. If true, sending frames will likely succeed. However, no guarantees can be made because there could be a race condition between WS closure and a "send" call.
The host to which this web socket is connected.
The single-consumer hot flow of incoming web socket frames.
The URL that was used to connect this web socket.