MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getSSESequenceNum

Function getSSESequenceNum

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

Source from the content-addressed store, hash-verified

1683 return environmentId
1684 },
1685 getSSESequenceNum() {
1686 // lastTransportSequenceNum only updates when a transport is CLOSED
1687 // (captured at swap/onClose). During normal operation the CURRENT
1688 // transport's live seq isn't reflected there. Merge both so callers
1689 // (e.g. daemon persistState()) get the actual high-water mark.
1690 const live = transport?.getLastSequenceNum() ?? 0
1691 return Math.max(lastTransportSequenceNum, live)
1692 },
1693 sessionIngressUrl,
1694 writeMessages(messages) {
1695 // 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