source: trip-planner-front/node_modules/engine.io/build/transports/polling.d.ts@ 1ad8e64

Last change on this file since 1ad8e64 was e29cc2e, checked in by Ema <ema_spirova@…>, 3 years ago

primeNG components

  • Property mode set to 100644
File size: 2.0 KB
Line 
1import { Transport } from "../transport";
2export declare class Polling extends Transport {
3 maxHttpBufferSize: number;
4 httpCompression: any;
5 private res;
6 private dataReq;
7 private dataRes;
8 private shouldClose;
9 private readonly closeTimeout;
10 /**
11 * HTTP polling constructor.
12 *
13 * @api public.
14 */
15 constructor(req: any);
16 /**
17 * Transport name
18 *
19 * @api public
20 */
21 get name(): string;
22 get supportsFraming(): boolean;
23 /**
24 * Overrides onRequest.
25 *
26 * @param {http.IncomingMessage}
27 * @api private
28 */
29 onRequest(req: any): void;
30 /**
31 * The client sends a request awaiting for us to send data.
32 *
33 * @api private
34 */
35 onPollRequest(req: any, res: any): void;
36 /**
37 * The client sends a request with data.
38 *
39 * @api private
40 */
41 onDataRequest(req: any, res: any): void;
42 /**
43 * Processes the incoming data payload.
44 *
45 * @param {String} encoded payload
46 * @api private
47 */
48 onData(data: any): void;
49 /**
50 * Overrides onClose.
51 *
52 * @api private
53 */
54 onClose(): void;
55 /**
56 * Writes a packet payload.
57 *
58 * @param {Object} packet
59 * @api private
60 */
61 send(packets: any): void;
62 /**
63 * Writes data as response to poll request.
64 *
65 * @param {String} data
66 * @param {Object} options
67 * @api private
68 */
69 write(data: any, options: any): void;
70 /**
71 * Performs the write.
72 *
73 * @api private
74 */
75 doWrite(data: any, options: any, callback: any): void;
76 /**
77 * Compresses data.
78 *
79 * @api private
80 */
81 compress(data: any, encoding: any, callback: any): void;
82 /**
83 * Closes the transport.
84 *
85 * @api private
86 */
87 doClose(fn: any): void;
88 /**
89 * Returns headers for a response.
90 *
91 * @param {http.IncomingMessage} request
92 * @param {Object} extra headers
93 * @api private
94 */
95 headers(req: any, headers: any): any;
96}
Note: See TracBrowser for help on using the repository browser.