Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn interface { Close() error SetReadDeadline(time.Time) error ReadMessage() (int, []byte, error) WriteMessage(int, []byte) error }
Conn is the interface for a *websocket.Conn as used in this wrapper package
type Dialer ¶
Dialer is the interface for a *websocket.Dialer as used in this wrapper package
func WrapDialer ¶
WrapDialer will wrap a *websocket.Dialer so it conforms to this package's interface
type Options ¶
type Options struct {
MaxConcurrentHandlers int
}
Options enables setting up a WSClient with the desired connection settings
type WSClient ¶
type WSClient struct {
// contains filtered or unexported fields
}
func NewWSClient ¶
NewWSClient creates a new WSClient
func (*WSClient) HandleRequests ¶
func (*WSClient) SendMessage ¶
Click to show internal directories.
Click to hide internal directories.