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

Method CloseSession

http/websocket/session/sessionlist.go:57–63  ·  view source on GitHub ↗
(session *Session)

Source from the content-addressed store, hash-verified

55 return session, nil
56}
57func (self *SessionList) CloseSession(session *Session) {
58 if session == nil {
59 return
60 }
61 self.removeSession(session)
62 session.Close()
63}
64
65func (self *SessionList) removeSession(session *Session) {
66 self.Lock()

Callers 2

checkSessionsTimeoutMethod · 0.80
webSocketHandlerMethod · 0.80

Calls 2

removeSessionMethod · 0.95
CloseMethod · 0.65

Tested by

no test coverage detected