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

Method getSub

server/session.go:196–203  ·  view source on GitHub ↗
(topic string)

Source from the content-addressed store, hash-verified

194}
195
196func (s *Session) getSub(topic string) *Subscription {
197 // Don't check s.multi here. Let it panic if called for proxy session.
198
199 s.subsLock.RLock()
200 defer s.subsLock.RUnlock()
201
202 return s.subs[topic]
203}
204
205func (s *Session) delSub(topic string) {
206 if s.multi != nil {

Callers 10

dispatchMethod · 0.95
subscribeMethod · 0.95
leaveMethod · 0.95
publishMethod · 0.95
getMethod · 0.95
setMethod · 0.95
delMethod · 0.95
noteMethod · 0.95
registerSessionMethod · 0.80
broadcastToSessionsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected