# Functions
DefaultDialer returns a default WebSocket dialer By default, this uses the multiplexed dialer for better resource utilization.
DirectDialer returns a direct (non-multiplexed) WebSocket dialer This is useful for cases where multiplexing is not desired.
NewConn creates a new Conn instance It wraps the provided WebSocketConn with thread-safe methods and optional logging.
NewConnHandler creates a new ConnHandler with the given context and connection.
NewGorillaWebSocketDialer creates a new GorillaWebSocketDialer.
# Constants
32KB read limit by default.
MessageBinary denotes a binary data message.
MessageClose denotes a close control message.
MessagePing denotes a ping control message.
MessagePong denotes a pong control message.
MessageText denotes a text data message.
# Variables
Error definitions.
# Structs
Conn is a generic WebSocket connection wrapper.
ConnHandler is a handler for a WebSocket connection.
DialerOptions contains configuration options for WebSocket dialers.
GorillaWebSocketConn is a WebSocket connection implementation based on gorilla/websocket.
GorillaWebSocketDialer is a WebSocket dialer implementation based on gorilla/websocket.
GorillaWebSocketOptions is the options for GorillaWebSocketConn.
# Interfaces
Logger interface for connection logging.
WebSocketConn represents a WebSocket connection interface.
WebSocketDialer is the interface for WebSocket dialers.
# Type aliases
MessageType represents the type of WebSocket message.
RawMessageHandler is a function that processes raw WebSocket messages.