Documentation
¶
Rendered for js/wasm
Overview ¶
Package socket contains the logic to communicate with the server for the game via websocket communication
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Socket ¶
type Socket struct { Lobby *lobby.Lobby Game *controller.Game User User // contains filtered or unexported fields }
Socket can be used to easily push and pull messages from the server.
func (*Socket) Connect ¶
Connect establishes the websocket connection if it has not yet been established.
Click to show internal directories.
Click to hide internal directories.