finnhub-js icon indicating copy to clipboard operation
finnhub-js copied to clipboard

ping pong documentation

Open skywalk1411 opened this issue 2 years ago • 1 comments

Hello,

Where is the ping documentation, websocket keep disconnecting me after a while, no mention of returning ping/pong but I bet that is the problem, I look at finnhub code, and nowhere do I find any mention of ping pong

server send me {"type":"ping"} every 1-2 mins

I try sending a websocket.ping() or .pong() or {"type":"ping"} or {"type":"pong"} but I still keep getting disconnected. so my question is simple.

Where is the ping pong documentation, what is it exactly do I need to keep telling the finnhub websocket server so my connection stay alive?

Thank you.

skywalk1411 avatar Feb 06 '23 22:02 skywalk1411

Good question

marbx avatar Dec 18 '23 14:12 marbx