Im running a script thats integrates with an API using socketIO.
I use the following function for solving unwanted disconnects:
def disconnect(): globa