Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WebSocketConn ¶
type WebSocketConn struct {
// contains filtered or unexported fields
}
WebSocketConn wraps a WebSocket connection to implement io.ReadWriteCloser. This adapter is required for smux which expects io.ReadWriteCloser.
func NewWebSocketConn ¶
func NewWebSocketConn(conn *websocket.Conn) *WebSocketConn
NewWebSocketConn creates a new WebSocket to io.ReadWriteCloser adapter.
func (*WebSocketConn) Close ¶
func (w *WebSocketConn) Close() error
Close closes the WebSocket connection.
Click to show internal directories.
Click to hide internal directories.