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

Method GetSessionCount

http/websocket/session/sessionlist.go:78–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76}
77
78func (self *SessionList) GetSessionCount() int {
79 self.RLock()
80 defer self.RUnlock()
81 return len(self.mapOnlineList)
82}
83
84func (self *SessionList) ForEachSession(visit func(*Session)) {
85 self.RLock()

Callers 2

NewSessionMethod · 0.95
registryMethodMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected