Documentation ¶
Index ¶
- type Client
- func (client *Client) Connect()
- func (client *Client) Disconnect()
- func (client *Client) Emit(eventName string, data interface{})
- func (client *Client) EmitAck(eventName string, data interface{}, ...)
- func (client *Client) EnableLogging()
- func (client *Client) GetAuthToken() string
- func (client *Client) GetLogger() logging.Logger
- func (client *Client) IsConnected() bool
- 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) SetAuthToken(token string)
- 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 Empty
- type Listener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { ConnectionOptions gowebsocket.ConnectionOptions RequestHeader http.Header Listener // contains filtered or unexported fields }
func (*Client) Disconnect ¶
func (client *Client) Disconnect()
func (*Client) EnableLogging ¶
func (client *Client) EnableLogging()
func (*Client) GetAuthToken ¶
func (*Client) IsConnected ¶
func (*Client) PublishAck ¶
func (*Client) SetAuthToken ¶
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.