# Functions
CloseErrorFromBytes parses a CloseError from the payload bytes of a WebSocket CLOSE control message.
ConvertErrorToStatusError converts an error (such as a CloseError) into a gRPC Status Error.
MakeAdaptor builds and returns an Adaptor.
MessageTypeFromProto converts a roxy_v0.WebSocketFrame_Type enum to a gorilla/websocket message type integer.
MessageTypeToProto converts a gorilla/websocket message type integer to a roxy_v0.WebSocketFrame_Type enum.
NewLooper constructs a new Looper for the given WebSocketConn.
OnBinary specifies a handler for BINARY data messages.
OnClose specifies a handler for CLOSE control messages.
OnPing specifies a handler for PING control messages.
OnPong specifies a handler for PONG control messages.
OnText specifies a handler for TEXT data messages.
WithPingInterval specifies the time interval between the receiving of a PONG control message and the sending of the next automatic PING control message.
WithPongInterval specifies the time interval between the sending of an automatic PING control message and abandoning the connection because no PONG control message was received in response.
WithReadLimit specifies the maximum number of bytes to read per message for an Adaptor.
WithReadTimeout specifies the connection read timeout for an Adaptor.
WithWriteTimeout specifies the connection write timeout for an Adaptor.
# Structs
Adaptor wraps a websocket.Conn so that it can be used as a gRPC-like WebSocketConn suitable for use with Looper.
CloseError represents a WebSocket connection close event.
Looper is a construct for handling the mid-level details of operating a WebSocket-over-gRPC endpoint (client or server).
# Interfaces
WebSocketConn is the minimum subset of the roxy_v0.Web_SocketClient and roxy_v0.Web_SocketServer gRPC streams which is needed by Looper.
# Type aliases
AdaptorOption represents an option for building an Adaptor.
BinaryHandlerFunc is the type for an OnBinary handler.
CloseHandlerFunc is the type for an OnClose handler.
LooperOption represents an option for constructing a Looper.
PingHandlerFunc is the type for an OnPing handler.
PongHandlerFunc is the type for an OnPong handler.
TextHandlerFunc is the type for an OnText handler.