Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connection ¶
Types ¶
type ConnectingPool ¶
type ConnectingPool struct { Users map[string]*OnlineUser Broadcast chan structs.Message CloseSign chan bool }
上线用户的连接池
type OnlineUser ¶
type OnlineUser struct { Connection *websocket.Conn Send chan structs.Message UserInfo *structs.UserInfo }
上线用户结构
func (*OnlineUser) UserOnlineNotice ¶
func (onlineUser *OnlineUser) UserOnlineNotice()
通知相应的用户,本用户上线消息
Click to show internal directories.
Click to hide internal directories.