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

Function NewSessionList

http/websocket/session/sessionlist.go:40–44  ·  view source on GitHub ↗

new websocket session list

()

Source from the content-addressed store, hash-verified

38
39// new websocket session list
40func NewSessionList() *SessionList {
41 return &SessionList{
42 mapOnlineList: make(map[string]*Session),
43 }
44}
45func (self *SessionList) NewSession(wsConn *websocket.Conn) (session *Session, err error) {
46 if self.GetSessionCount() > MAX_SESSION_COUNT {
47 return nil, errors.New("over MAX_SESSION_COUNT")

Callers 1

InitWsServerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected