Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Uid string Uuid string //ws连接ID Key string //浏览器随机key Hub *Hub Socket *websocket.Conn // ws连接 Message chan []byte //ws连接的消息管道 PingPeriod time.Duration ReadDeadline time.Duration WriteDeadline time.Duration HeartbeatFailTimes int sync.RWMutex State uint8 //状态 }
Click to show internal directories.
Click to hide internal directories.