Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHandler ¶
type WebSocketClient ¶
type WebSocketClient struct {
// contains filtered or unexported fields
}
func NewWebSocketClient ¶
func NewWebSocketClient(handler EventHandler) *WebSocketClient
func (*WebSocketClient) Dial ¶
func (ws *WebSocketClient) Dial(addr string, options *websocket.DialOptions, callback func(conn *websocket.Conn)) error
type WebSocketServer ¶
type WebSocketServer struct {
// contains filtered or unexported fields
}
func NewWebSocketServer ¶
func NewWebSocketServer(handler EventHandler, options *websocket.AcceptOptions) *WebSocketServer
func (*WebSocketServer) Serve ¶
func (ws *WebSocketServer) Serve(addr string) error
Click to show internal directories.
Click to hide internal directories.