Adding socket.io to have a duplex communication