webtransport.d.ts 429 B

12345678910111213
  1. import { Transport } from "../transport";
  2. /**
  3. * Reference: https://developer.mozilla.org/en-US/docs/Web/API/WebTransport_API
  4. */
  5. export declare class WebTransport extends Transport {
  6. private readonly session;
  7. private readonly writer;
  8. constructor(session: any, stream: any, reader: any);
  9. get name(): string;
  10. get supportsFraming(): boolean;
  11. send(packets: any): Promise<void>;
  12. doClose(fn: any): void;
  13. }