Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConnectedPlayers *cmap.ConcurrentMap = cmap.New()
View Source
var ErrNoWebsocket = errors.New(`Don't have any websocket connection.`)
View Source
var Hub = newHub()
Functions ¶
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(_ws *websocket.Conn) *Connection
func (*Connection) AssignToPlayer ¶
func (c *Connection) AssignToPlayer(_player interfaces.IPlayer)
func (*Connection) Close ¶
func (c *Connection) Close()
func (*Connection) Reader ¶
func (c *Connection) Reader()
func (*Connection) Writer ¶
func (c *Connection) Writer()
Click to show internal directories.
Click to hide internal directories.