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

Function ErrSessionNotFound

server/datamodel.go:1330–1338  ·  view source on GitHub ↗

ErrSessionNotFound valid API key is required (403).

(ts time.Time)

Source from the content-addressed store, hash-verified

1328
1329// ErrSessionNotFound valid API key is required (403).
1330func ErrSessionNotFound(ts time.Time) *ServerComMessage {
1331 return &ServerComMessage{
1332 Ctrl: &MsgServerCtrl{
1333 Code: http.StatusForbidden,
1334 Text: "invalid or expired session",
1335 Timestamp: ts,
1336 },
1337 }
1338}
1339
1340// ErrTopicNotFound topic is not found
1341// with explicit server and incoming request timestamps (404).

Callers 1

serveLongPollFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…