Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { // The type of the message: // 1 (welcome) // 100 (text message) // 200 (create room), 210 (user join), 211 (user leave), // 212 (delete room) // 300 (status change) // 400 (ok), 401 (unauthorized), 404 (not found) Type int `json:"op"` Data interface{} `json:"d"` Token string `json:"tkn"` RoomID string `json:"rid"` }
Message is a JSON packet sent both by the server and clients. See Type.
Click to show internal directories.
Click to hide internal directories.