Integrate socketio with application