Event driven model, communicate between server and client using socket.io.