With regards to #185 , it becomes evident that clients of pyTwitchAPI should have the ability to know whether any given socket connection is alive or dead. It would be useful to expose something like is_ready() or is_connected() method to know whether the given connection is actually functioning. This method could be used prior to using that particular subsystem for proactive error handling rather than waiting for any sort of exception being raised.
e.g.:
if not chat.is_connected():
pop_up_error_window()
restart_chat()
chat.send_mesage('still here')
With regards to #185 , it becomes evident that clients of pyTwitchAPI should have the ability to know whether any given socket connection is alive or dead. It would be useful to expose something like
is_ready()
oris_connected()
method to know whether the given connection is actually functioning. This method could be used prior to using that particular subsystem for proactive error handling rather than waiting for any sort of exception being raised.e.g.: