UNPKG

404 BTypeScriptView Raw
1import { Polling } from "./polling.js";
2/**
3 * HTTP long-polling based on the built-in `fetch()` method.
4 *
5 * Usage: browser, Node.js (since v18), Deno, Bun
6 *
7 * @see https://developer.mozilla.org/en-US/docs/Web/API/fetch
8 * @see https://caniuse.com/fetch
9 */
10export declare class Fetch extends Polling {
11 doPoll(): void;
12 doWrite(data: string, callback: () => void): void;
13 private _fetch;
14}