Versions in this module Expand all Collapse all v1 v1.0.0 May 12, 2018 Changes in this version + type Client struct + func New(url string) 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 struct + func Init() Listener