Documentation
¶
Index ¶
- func ClientCount(uid uint) int
- func ClientRegister(user sec.UserInfo, conn *websocket.Conn) uint64
- func ClientUnregister(user sec.UserInfo, id uint64)
- func Listen(c *websocket.Conn)
- func WebsocketPush(uid uint, body []byte) (count int, successes []uint64, errs []error)
- func WebsocketPushBatch(uidList []uint, body []byte) (count int, successes []uint64, errs []error)
- func WebsocketPushBatchDirect(clientIdList []uint64, body []byte) (count int, successes []uint64, errs []error)
- func WebsocketPushDirect(clientId uint64, body []byte) (count int, successes []uint64, errs []error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientCount ¶
func ClientUnregister ¶
func WebsocketPush ¶
func WebsocketPushBatch ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.