Add api with socketio.