Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func InitConnection ¶
func InitConnection(wsConn *websocket.Conn) (conn *Connection, err error)
初始化长连接
func (*Connection) ReadMessage ¶
func (conn *Connection) ReadMessage() (data []byte, err error)
读取Api
func (*Connection) WriteMessage ¶
func (conn *Connection) WriteMessage(data []byte) (err error)
发送Api
Click to show internal directories.
Click to hide internal directories.