Reconnecting Ticker after connecting to another WiFi router

vcb
I have two ISPs connected to two different WiFi routers. If the currently connected WiFi router fails, the other WiFi router is connected.

When the WiFi router is changed, ticker stops receiving ticks. What would be the correct way to start getting ticks again ? Do i need to:
A. Just do ticker.Close(); and then do ticker.Connect();
OR
B. Close Ticker completely, e.g. by doing ticker = null; and then doing ticker = new Ticker(ApiKey, KiteAccessToken);
OR
C. Do the whole 'Log-In Flow' all over again as explained at https://kite.trade/docs/connect/v3/user/
  • sujith
    @vcb,
    You don't have to do anything. dotnetkiteconnect will take care of it for you. You just need to enable reconnect while initializing ticker.
    You can check out the sample code here.
Sign In or Register to comment.