The Kamailio websocket module sends WebSocket pongs in response to WebSocket pings from websocket clients.  It can also be configured to send WebSocket pings on idle connections (and does so by default).

There is no TCP level stuff here, this is all at the WebSocket layer.  Take a look at the "keepalive_.*" modparams for the websocket module.

The TCP connection timeout should be set to something a little greater than the WebSocket ping interval is set to.

Regards,

Peter


On 26 September 2013 12:37, Juha Heinanen <jh@tutpro.com> wrote:
Klaus Darilion writes:

> Question to the experts: Is keep-alive for the Websockets TCP connection
> automatically done by the Websockets Layer (client or server), or do I
> have to do it manually (nathelper pinging).

since websockets uses tcp, kamailio running on linux should
automatically do tcp level keepalives.

-- juha

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



--
Peter Dunkley
Technical Director
Crocodile RCS Ltd