added onLeaveRoom method
modified the handling of join room success responses