We don't kill websocket connection when the session expires. Your system will continue to run as is. The server will throw an error only when a user tries to connect, so in your case probably while trying to re-connect you will start noticing the error.
One can't change heartbeat value. It is just a 1-byte ping from the server.
Is my following understanding correct based on your inputs,
Below error is coming when our already connected system tried to reconnect with your server due to underlying connectivity issues and since our system was already connected before so no need to generate a new token and existing token will be enough for reconnect.
@sujith@Vivek Note :: Am using python language for code development. 1] Does the heart beats (of 1 byte fixed length) received in "ticks" of websocket on_tick callback, have any fixed value? (So that corresponding handler can be written!!!) 2] If there are multiple full mode subscriptions successfully made and there is change in only 1 of the script's "LTP"; what is received in "ticks"? (My understanding :: Only the changed LTP script's full mode dictionary is received!!!)
In pykiteconnect, on_tick is not called for every heartbeat tick. Yes, you will receive tick of the instrument whose LTP has changed and not all the instruments.
PS: Please don't hijack threads, this thread talks about an issue in Websocket and not about the behavior. This answer gets hidden and anyone else looking for the answer can't find this. Please create new thread for new queries.
One can't change heartbeat value. It is just a 1-byte ping from the server.
Is my following understanding correct based on your inputs,
Below error is coming when our already connected system tried to reconnect with your server due to underlying connectivity issues and since our system was already connected before so
no need to generate a new token and existing token will be enough for reconnect.
ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanly (WebSocket connection upgrade failed (403 - Forbidden))
Many thanks for your feedback.
Access token once generated it will be same and valid for whole Indian trading day, is that correct?
What could be probable reason for expiring of access token ?
What time at morning access token should we generate?
Note :: Am using python language for code development.
1] Does the heart beats (of 1 byte fixed length) received in "ticks" of websocket on_tick callback, have any fixed value? (So that corresponding handler can be written!!!)
2] If there are multiple full mode subscriptions successfully made and there is change in only 1 of the script's "LTP"; what is received in "ticks"? (My understanding :: Only the changed LTP script's full mode dictionary is received!!!)
Your insights are most awaited!!
Yes, you will receive tick of the instrument whose LTP has changed and not all the instruments.
PS: Please don't hijack threads, this thread talks about an issue in Websocket and not about the behavior.
This answer gets hidden and anyone else looking for the answer can't find this. Please create new thread for new queries.