Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { EventChannel chan *model.WebSocketEvent // contains filtered or unexported fields }
Client is the websocket client to perform all actions.
func NewClient ¶
func NewClient(param *ClientParams) (*Client, error)
NewClient constructs a new WebSocket client.
func (*Client) SendBinaryMessage ¶
SendBinaryMessage is the method to write to the websocket using binary data type (MessagePack encoded).
Click to show internal directories.
Click to hide internal directories.