MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / GetConnectionId

Function GetConnectionId

internal/users/users.go:101–109  ·  view source on GitHub ↗
(userId int)

Source from the content-addressed store, hash-verified

99}
100
101func GetConnectionId(userId int) connections.ConnectionId {
102 userManagerMu.RLock()
103 defer userManagerMu.RUnlock()
104
105 if user, ok := userManager.Users[userId]; ok {
106 return user.connectionId
107 }
108 return 0
109}
110
111func GetConnectionIds(userIds []int) []connections.ConnectionId {
112 userManagerMu.RLock()

Callers 3

cliCommandMethod · 0.92
dispatchGMCPMethod · 0.92
isMudletClientMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected