(connectionId connections.ConnectionId)
| 179 | } |
| 180 | |
| 181 | func GetByConnectionId(connectionId connections.ConnectionId) *UserRecord { |
| 182 | userManagerMu.RLock() |
| 183 | defer userManagerMu.RUnlock() |
| 184 | |
| 185 | if userId, ok := userManager.Connections[connectionId]; ok { |
| 186 | return userManager.Users[userId] |
| 187 | } |
| 188 | |
| 189 | return nil |
| 190 | } |
| 191 | |
| 192 | // CopyoverReconnectUser takes over an existing session for a user who is |
| 193 | // reconnecting after a copyover. The caller must have already validated a |
no outgoing calls
no test coverage detected