remove socketio and convert to simple REST API