handle ping/pong in ws #394
-
hi, |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
-
@hst-m Thank you a lot for all these little snippets btw. Helps a lot starting out :) |
Beta Was this translation helpful? Give feedback.
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