Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrRoomWasNotFound send when request room was not be found ErrRoomWasNotFound = errors.New("Requested room was not found") // ErrInvalidUserID send when invalid user ID was received ErrInvalidUserID = errors.New("Cannot find user with given user_uuid") // ErrBannedInARoom send when user banned in a room ErrBannedInARoom = errors.New("You're banned in this room") )
View Source
var Register chan *websocket.Conn
Register a new connection in a room cache
Functions ¶
func HandleWsConnection ¶
HandleWsConnection handle new websocker connection
func NewRoomHub ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.