Skip to content

Commit 39d7789

Browse files
pengyingclaude
andcommitted
fix(samples): filter out heartbeat messages from webhook stream UI
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent bb08f69 commit 39d7789

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

samples/frontend/src/components/WebhookStream.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default function WebhookStream() {
1919

2020
es.onopen = () => setConnected(true)
2121
es.onmessage = (event) => {
22+
if (event.data === 'heartbeat') return
2223
try {
2324
const data = JSON.parse(event.data)
2425
if (data.type === 'connected') return

0 commit comments

Comments
 (0)