Added events handling to the server side.

join room, change nickname, disconnect, send message