xiaokuaisong-xiaochengxu/uniapp04/node_modules/engine.io-client/build/cjs/transports/polling-fetch.d.ts

16 lines
454 B
TypeScript
Raw Normal View History

2025-04-11 06:42:29 +00:00
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;
}