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

Method supportsMessageBatching

server/session.go:259–268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257}
258
259func (s *Session) supportsMessageBatching() bool {
260 switch s.proto {
261 case WEBSOCK:
262 return true
263 case GRPC:
264 return true
265 default:
266 return false
267 }
268}
269
270// queueOut attempts to send a list of ServerComMessages to a session write loop;
271// it fails if the send buffer is full.

Callers 1

queueOutBatchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected