use socket.io to exchange data by restful style.