Documentation
¶
Index ¶
- type Client
- func (c *Client) Close()
- func (c *Client) Emit(name string, dat interface{}, f interface{}) error
- func (c *Client) Error(err error)
- func (c *Client) On(name string, f interface{}) error
- func (c *Client) OnConnect(f func())
- func (c *Client) OnDisconnect(f func())
- func (c *Client) OnError(f func(error))
- type GUI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a middleman between the websocket connection and the hub.
func (*Client) OnConnect ¶
func (c *Client) OnConnect(f func())
OnConnect register a func which is called when connected..
func (*Client) OnDisconnect ¶
func (c *Client) OnDisconnect(f func())
OnDisconnect register a func which is called when disconnected.
Click to show internal directories.
Click to hide internal directories.