Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OnErrorHandler = func(c *wshelper.Connection, err error) { log.Fatal(err) } OnCloseHandler = func(c *wshelper.Connection, code websocket.StatusCode, reason string) { log.Printf("The connection '%v' has been closed with code '%v' and reason '%v'", c.UUID(), code, reason) } )
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Op uint8 `json:"op"` Data json.RawMessage `json:"data"` }
Click to show internal directories.
Click to hide internal directories.