Client: add a general handling for server 'debug' socket events.
Server: add a callback to unsubscribeAll + added a 'debug' socket event to tell the client the server unsubscribed