Setting the file. One moment.
Subchapter 131.7
examples/comprehensive-network-pattern.mdMarkdown904 BView on GitHub
import { Prober } from "@zoom/probesdk";
const prober = new Prober();
export async function runComprehensiveDiagnostic() {
const jsUrl = ""; // optional custom hosted prober.js
const wasmUrl = ""; // optional custom hosted prober.wasm loader
const config = {
probeDuration: 120 * 1000,
connectTimeout: 20 * 1000,
domain: "zoom.us",
};
const statsHistory = [];
const report = await prober.startToDiagnose(jsUrl, wasmUrl, config, (stats) => {
statsHistory.push(stats);
});
return {
report,
statsHistory,
};
}
export async function stopEarlyAndCollect() {
const partial = await prober.stopToDiagnose();
prober.cleanup();
return partial;
}