MCPcopy
hub / github.com/link1st/gowebsocket / GetUserClient

Function GetUserClient

servers/websocket/client_manager.go:349–353  ·  view source on GitHub ↗

获取用户所在的连接

(appId uint32, userId string)

Source from the content-addressed store, hash-verified

347
348// 获取用户所在的连接
349func GetUserClient(appId uint32, userId string) (client *Client) {
350 client = clientManager.GetUserClient(appId, userId)
351
352 return
353}
354
355// 定时清理超时连接
356func ClearTimeoutConnections() {

Callers 2

SendUserMessageFunction · 0.85
SendUserMessageLocalFunction · 0.85

Calls 1

GetUserClientMethod · 0.80

Tested by

no test coverage detected