Documentation ¶
Index ¶
- type Client
- func (client *Client) Connect()
- func (client *Client) Emit(eventName string, data interface{})
- func (client *Client) EmitAck(eventName string, data interface{}, ...)
- func (client *Client) On(eventName string, ack func(eventName string, data interface{}))
- func (client *Client) OnAck(eventName string, ack func(eventName string, data interface{}, ...))
- func (client *Client) OnChannel(eventName string, ack func(eventName string, data interface{}))
- func (client *Client) Publish(channelName string, data interface{})
- func (client *Client) PublishAck(channelName string, data interface{}, ...)
- func (client *Client) SetAuthenticationListener(onSetAuthentication func(client Client, token string), ...)
- func (client *Client) SetBasicListener(onConnect func(client Client), onConnectError func(client Client, err error), ...)
- func (client *Client) Subscribe(channelName string)
- func (client *Client) SubscribeAck(channelName string, ...)
- func (client *Client) Unsubscribe(channelName string)
- func (client *Client) UnsubscribeAck(channelName string, ...)
- type Listener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Listener // contains filtered or unexported fields }
func (*Client) PublishAck ¶
func (*Client) SetAuthenticationListener ¶
func (*Client) SetBasicListener ¶
func (*Client) SubscribeAck ¶
func (*Client) Unsubscribe ¶
func (*Client) UnsubscribeAck ¶
Click to show internal directories.
Click to hide internal directories.