Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseMessage ¶
func NewBaseMessage ¶
func NewBaseMessage(path string, data interface{}) (*BaseMessage, error)
type Client ¶
type Client struct { Out chan *BaseMessage FatalCh chan error Conn *websocket.Conn }
func (*Client) Send ¶
func (c *Client) Send(msg *BaseMessage)
type ErrorMessage ¶
type ErrorMessage struct {
Error string `json:"error"`
}
Click to show internal directories.
Click to hide internal directories.