Running kite ticker, when http connection is lost, I get a log error message: where shall I put try-catch to catch the error 1006 as mentioned above?
You don't need to handle this here, as ticker auto reconnects by default. Just make sure not to have ws.stop() i.e force stop the ticker anywhere undesired. Multi-line comment here explains about auto-reconnect mechanism in more detail.
so you mean to say that no exception will be generated and I should let the auto-reconnect feature take care of the situation? should I handle the error log by adding filter to the logger?
I see only log error messages, but no exception. I guess exception is raised only when there are more serious issues in network. Had there been an exception, I would have caught it and run some code.
ws.stop()
i.e force stop the ticker anywhere undesired. Multi-line comment here explains about auto-reconnect mechanism in more detail.