index.d.ts 451 B

123456789101112131415161718
  1. import { Polling as XHR } from "./polling";
  2. import { WebSocket } from "./websocket";
  3. import { WebTransport } from "./webtransport";
  4. declare const _default: {
  5. polling: typeof polling;
  6. websocket: typeof WebSocket;
  7. webtransport: typeof WebTransport;
  8. };
  9. export default _default;
  10. /**
  11. * Polling polymorphic constructor.
  12. *
  13. * @api private
  14. */
  15. declare function polling(req: any): XHR;
  16. declare namespace polling {
  17. var upgradesTo: string[];
  18. }