Versions in this module Expand all Collapse all v0 v0.2.0 Nov 26, 2021 v0.1.0 Feb 8, 2021 Changes in this version + type Client struct + func New(url string, secure bool) (*Client, error) + func (cl *Client) Disconnect() + func (cl *Client) Emit(event string, data ...interface{}) error + func (cl *Client) Listen() error + func (cl *Client) On(event string, handler func(data ...interface{})) + func (cl *Client) Ping() error + func (cl *Client) Read() (Message, error) + type ConnectMessage struct + type DisconnectMessage struct + type ErrorMessage struct + type EventMessage struct + Data []interface{} + Event string + type Message interface + type PongMessage struct