handle message broadcasting, room joining and client disconnects