Fix #3: Call the clientConnected() and clientDisconnected() methods in associated events callbacks