polling-jsonp.d.ts 547 B

123456789101112131415161718192021222324
  1. import { Polling } from "./polling";
  2. export declare class JSONP extends Polling {
  3. private readonly head;
  4. private readonly foot;
  5. /**
  6. * JSON-P polling transport.
  7. *
  8. * @api public
  9. */
  10. constructor(req: any);
  11. /**
  12. * Handles incoming data.
  13. * Due to a bug in \n handling by browsers, we expect a escaped string.
  14. *
  15. * @api private
  16. */
  17. onData(data: any): void;
  18. /**
  19. * Performs the write.
  20. *
  21. * @api private
  22. */
  23. doWrite(data: any, options: any, callback: any): void;
  24. }