Pause a websocket and then resume again ?

tanmay
tanmay edited February 2020 in Python client
Lets say I want to pull out banknifty fut price for 5 min through websocket. Then give it a break for 2 min and then again resume it.

How do i do this through websocket ?
In other words, if websockets stops in between, how do i start it again automatically ? ( I am not talking about restarting the code again but only the web socket)
  • sujith
    You can either keep the connection intact and keep doing subscribe and unsubscribe or close the connection and call connect again from your code.
Sign In or Register to comment.