How to use is_Conneted method?

TUSH123
Please provide me sample code
I am using like
ws.is_connected == False

in on_errorand on_close but not working

This discussion has been closed.