MCPcopy Create free account
hub / github.com/Noumena-Network/code / getSSESequenceNum

Function getSSESequenceNum

src/bridge/replBridge.ts:1702–1709  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1700 return environmentId
1701 },
1702 getSSESequenceNum() {
1703 // lastTransportSequenceNum only updates when a transport is CLOSED
1704 // (captured at swap/onClose). During normal operation the CURRENT
1705 // transport's live seq isn't reflected there. Merge both so callers
1706 // (e.g. daemon persistState()) get the actual high-water mark.
1707 const live = transport?.getLastSequenceNum() ?? 0
1708 return Math.max(lastTransportSequenceNum, live)
1709 },
1710 sessionIngressUrl,
1711 writeMessages(messages) {
1712 // Filter to user/assistant messages that haven't already been sent.

Callers

nothing calls this directly

Calls 2

getLastSequenceNumMethod · 0.80
maxMethod · 0.80

Tested by

no test coverage detected