MCPcopy Create free account
hub / github.com/SplootCode/splootcode / sendHeartbeat

Function sendHeartbeat

packages/runtime-web/index.ts:13–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11let state = FrameState.LOADING
12
13function sendHeartbeat() {
14 sendToParent({ type: 'heartbeat', data: { state: state } })
15}
16
17function setState(newState: FrameState) {
18 const isNew = state !== newState

Callers 2

setStateFunction · 0.85
handleMessageFunction · 0.85

Calls 1

sendToParentFunction · 0.85

Tested by

no test coverage detected