Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
CS foundations
/
WebSocket
A browser application must verify that its server-side business loop is responsive. Which…
from WebSocket
Node 24
intermediate
3 min
A browser application must verify that its server-side business loop is responsive. Which heartbeat is appropriate?
Call `socket.ping()` from browser JavaScript.
Send an application heartbeat with a sequence or time and enforce a bounded reply timeout.
Treat any `bufferedAmount` value as proof that the server is alive.
Reconnect continuously until one attempt succeeds.
Check
Ask AI about this kata
Report an error
next kata
Which two booleans does this send-admission check print?
Predict the output
A new version is available
Reload