Documentation ¶
Index ¶
Constants ¶
View Source
const ( CREATE_GAME = "CREATE_GAME" FLAG = "FLAG" UNFLAG = "UNFLAG" DIG = "DIG" USER_MOUSE = "USER_MOUSE" )
View Source
const ( GAME_LOST = "GAME_LOST" GAME_WON = "GAME_WON" UPDATE_BOARD = "UPDATE_BOARD" HISTORY = "HISTORY" CONNECTED_USERS = "CONNECTED_USERS" )
Variables ¶
View Source
var NilEvent = Event{}
Functions ¶
Types ¶
type ActionMouse ¶
type ActionSquare ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a middleman between the websocket connection and the hub.
Click to show internal directories.
Click to hide internal directories.