change name from using socket.io to using REST API