handle ping/pong in ws #394
Answered
by
hst-m
hosseinhojjatyar
asked this question in
Q&A
|
hi, |
Answered by
hst-m
Nov 13, 2020
Replies: 2 comments 4 replies
|
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 |
4 replies
|
@hst-m Thank you a lot for all these little snippets btw. Helps a lot starting out :) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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