Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { Send chan []byte SendQueue chan []byte // contains filtered or unexported fields }
func (*Connection) Run ¶
func (c *Connection) Run()
func (*Connection) SendError ¶
func (c *Connection) SendError(target string, msg string)
func (*Connection) SendPacket ¶
func (c *Connection) SendPacket(data map[string]interface{})
type ReceiveMessage ¶
type ReceiveMessage struct { Message []byte Connection *Connection }
type Websocket ¶
type Websocket struct { ReceiveMessages chan ReceiveMessage NewConnection chan ReceiveMessage // contains filtered or unexported fields }
func (*Websocket) ConnectionCount ¶
Click to show internal directories.
Click to hide internal directories.