MCPcopy
hub / github.com/tinode/chat / detachSession

Method detachSession

server/session.go:387–392  ·  view source on GitHub ↗
(fromTopic string)

Source from the content-addressed store, hash-verified

385}
386
387func (s *Session) detachSession(fromTopic string) {
388 if atomic.LoadInt32(&s.terminating) == 0 {
389 s.detach <- fromTopic
390 s.maybeScheduleClusterWriteLoop()
391 }
392}
393
394func (s *Session) stopSession(data any) {
395 s.stop <- data

Callers 4

runProxyMethod · 0.80
proxyCtrlBroadcastMethod · 0.80
evictUserMethod · 0.80

Calls 1

Tested by

no test coverage detected