xiaokuaisong-xiaochengxu/uniapp04/node_modules/engine.io-client/build/esm/transports/polling-fetch.d.ts
2025-04-11 14:42:29 +08:00

16 lines
454 B
TypeScript

import { Polling } from "./polling.js";
/**
* HTTP long-polling based on the built-in `fetch()` method.
*
* Usage: browser, Node.js (since v18), Deno, Bun
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/fetch
* @see https://caniuse.com/fetch
* @see https://nodejs.org/api/globals.html#fetch
*/
export declare class Fetch extends Polling {
doPoll(): void;
doWrite(data: string, callback: () => void): void;
private _fetch;
}