uniapp,h5

polling-fetch.d.ts 454B

12345678910111213141516
  1. import { 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. * @see https://nodejs.org/api/globals.html#fetch
  10. */
  11. export declare class Fetch extends Polling {
  12. doPoll(): void;
  13. doWrite(data: string, callback: () => void): void;
  14. private _fetch;
  15. }