you have to open it again, you need to keep track in frontend app that what calls are being made. One way to do is make calls like chain that is first call active_symbols, when active_symbols comes response comes call ticks so when you reconnect you need to only call active_symbols only
Comments
You need to initiate a connection but if you want to keep it connected then call this periodically https://developers.binary.com/api/#ping or if your language is javascript then you can check this https://github.com/raunakkathuria/websocket-reconnect which I wrote
how about if tick stream stop?
how to reconect tick again?
you have to open it again, you need to keep track in frontend app that what calls are being made. One way to do is make calls like chain that is first call active_symbols, when active_symbols comes response comes call ticks so when you reconnect you need to only call active_symbols only
socket close but not reconect sir
i use ur script
Why not try our binary-live-api project? You can easily subscribe to ticks and it will take care of resubscribing if the connection is lost.