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

Method isCluster

server/session.go:248–250  ·  view source on GitHub ↗

Cluster session: either a proxy or a multiplexing session.

()

Source from the content-addressed store, hash-verified

246
247// Cluster session: either a proxy or a multiplexing session.
248func (s *Session) isCluster() bool {
249 return s.isProxy() || s.isMultiplex()
250}
251
252func (s *Session) scheduleClusterWriteLoop() {
253 if globals.cluster != nil && globals.cluster.proxyEventQueue != nil {

Callers 2

queueOutMethod · 0.95
handleLeaveRequestMethod · 0.80

Calls 2

isProxyMethod · 0.95
isMultiplexMethod · 0.95

Tested by

no test coverage detected