Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { ID string Player *player.Player // Events OnClose chan bool OnError chan error InBoundMessage chan string OutBoundMessage chan string // contains filtered or unexported fields }
func NewConnection ¶
func (*Connection) Close ¶
func (connection *Connection) Close()
func (*Connection) Id ¶
func (connection *Connection) Id() string
func (*Connection) Write ¶
func (connection *Connection) Write(message string)
type Function ¶
type Function func(connection *Connection, message string) error
Click to show internal directories.
Click to hide internal directories.