Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { SocketId string // contains filtered or unexported fields }
func InitConnection ¶
func InitConnection(wsConn *websocket.Conn) (conn *Connection, err error)
func (*Connection) Close ¶
func (this *Connection) Close()
func (*Connection) ReadMessage ¶
func (this *Connection) ReadMessage() (data []byte, err error)
func (*Connection) WriteJson ¶
func (this *Connection) WriteJson(data interface{}) (err error)
func (*Connection) WriteMessage ¶
func (this *Connection) WriteMessage(data []byte) (err error)
Click to show internal directories.
Click to hide internal directories.