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