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

Last change on this file 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 req
27 *
28 * @api private
29 */
30 onRequest(req: any): void;
31 /**
32 * The client sends a request awaiting for us to send data.
33 *
34 * @api private
35 */
36 onPollRequest(req: any, res: any): void;
37 /**
38 * The client sends a request with data.
39 *
40 * @api private
41 */
42 onDataRequest(req: any, res: any): void;
43 /**
44 * Processes the incoming data payload.
45 *
46 * @param {String} encoded payload
47 * @api private
48 */
49 onData(data: any): void;
50 /**
51 * Overrides onClose.
52 *
53 * @api private
54 */
55 onClose(): void;
56 /**
57 * Writes a packet payload.
58 *
59 * @param {Object} packet
60 * @api private
61 */
62 send(packets: any): void;
63 /**
64 * Writes data as response to poll request.
65 *
66 * @param {String} data
67 * @param {Object} options
68 * @api private
69 */
70 write(data: any, options: any): void;
71 /**
72 * Performs the write.
73 *
74 * @api private
75 */
76 doWrite(data: any, options: any, callback: any): void;
77 /**
78 * Compresses data.
79 *
80 * @api private
81 */
82 compress(data: any, encoding: any, callback: any): void;
83 /**
84 * Closes the transport.
85 *
86 * @api private
87 */
88 doClose(fn: any): void;
89 /**
90 * Returns headers for a response.
91 *
92 * @param req - request
93 * @param {Object} extra headers
94 * @api private
95 */
96 headers(req: any, headers: any): any;
97}
Note: See TracBrowser for help on using the repository browser.