finnhub-js
finnhub-js copied to clipboard
ping pong documentation
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.
Good question