socket.io-client-cpp icon indicating copy to clipboard operation
socket.io-client-cpp copied to clipboard

ping timeout?

Open captainwong opened this issue 4 years ago • 3 comments

For now, there seems no reference on client-side ping sending, will cause disconnection with laravel-echo-server.

captainwong avatar Aug 13 '21 21:08 captainwong

You can use this PR https://github.com/socketio/socket.io-client-cpp/pull/157

smitpatel88 avatar Aug 24 '21 11:08 smitpatel88

You can use this PR #157

Thx. But my problem is the default behavior of this lib will not send ping to server, in which case will cause disconnection with laravel-echo-server. So I had to run a client-side ping thread to maintain connection.

captainwong avatar Aug 25 '21 15:08 captainwong

Hi @captainwong from the protocol documentation on disconnect detection (https://socket.io/docs/v4/how-it-works/#disconnection-detection) it should be the server the one sending the pings and the client responding.

jmigual avatar Mar 10 '22 10:03 jmigual