MCPcopy Create free account
hub / github.com/DNAProject/DNA / GetSessionById

Method GetSessionById

http/websocket/session/sessionlist.go:71–76  ·  view source on GitHub ↗
(sessionId string)

Source from the content-addressed store, hash-verified

69}
70
71func (self *SessionList) GetSessionById(sessionId string) *Session {
72 self.RLock()
73 defer self.RUnlock()
74 return self.mapOnlineList[sessionId]
75
76}
77
78func (self *SessionList) GetSessionCount() int {
79 self.RLock()

Callers 2

PushTxResultMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected