/** * * Agora Real Time Engagement * Created by Wei Hu in 2021-09. * Copyright (c) 2022 Agora IO. All rights reserved. * */ let runtime; // The RTE app and the RTE extensions will add the 'rte_runtime' module into its // dependencies, and the 'rte_runtime' should be loaded only once when starting // the RTE app, all the RTE extensions will share the same instance. // TODO(Liu): change 'RteRuntimeS' to 'RteRuntime'. if ((globalThis as any).RteRuntimeS) { runtime = (globalThis as any).RteRuntimeS; } else { runtime = require('./rte_runtime_index'); (globalThis as any).RteRuntimeS = runtime; } export = runtime;