Is there a way to disconnect the client from the server and reconnect based on an action(a button maybe) ? I have this project that works both offline and online and I want to be able to go to those mode on demand
Maybe a custom way to close the current socket to the server ?