Documentation
¶
Index ¶
Constants ¶
View Source
const ( NORMAL = iota // 定义心跳的情况,NORMAL 正常的情况 CLOSE // 关闭心跳检测机制 )
Variables ¶
View Source
var ( OnOpen func(*Server, *websocket.Conn) OnMessage func(*Server, *Frame) OnClose func(*Server, *websocket.Conn) OnHandsheke func(conn *websocket.Config, r *http.Request) error HeartbeatCheckInterval int = 0 Req byte = 0 Heartbeat byte = 1 )
目的是为了封装websocket之后能够很好地调用我们的服务的操作
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.