Reputation: 613
I have a websocket client
in python implemented using tornado.websocket.
WebSocketClientConnection
which connects to a server at remote end and communicate over websocket
. Earlier I had implemented the ping/pong
like feedback mechanism at application layer to ensure if the remote endpoint is still responsive.
I just recently updated my tornado
package and I came across the ping_interval
in WebSocketClientConnection
. I removed the old ping/pong
mechanism at application layer and added this ping_interval
in my implementation.
After this updates the websocket
is getting closed after the mentioned ping_interval timeout
. The server at remote end handles the ping
at transport layer and respond accrodingly.
ping
method so should I have to implement ping
method for WebSocketClientConnection
?,ping
method?ping
request?Upvotes: 6
Views: 1635
Reputation: 2154
Upvotes: 6