Skip to content

handle ping/pong in ws #394

Answered by hst-m
hosseinhojjatyar asked this question in Q&A
Nov 13, 2020 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

v19 automatically sends Ping to client before the idleTimeout to keep connection alive, or you can manually send Ping with ws.ping()

Sending Ping from server: websocket.html#ping
Receiving Ping event: websocketbehavior.html#ping
Receiving Pong event: websocketbehavior.html#pong

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@buildscientist
Comment options

@e3dio
Comment options

@lewispham
Comment options

@e3dio
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants
Converted from issue

This discussion was converted from issue #394 on December 09, 2020 03:24.