Files
dogs/node_modules/engine.io-client/build/cjs/transports/polling-fetch.d.ts
ChloeChen0423 7c63f2f07b 前端代码
2025-05-12 16:42:36 +09: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;
}