source: trip-planner-front/node_modules/engine.io/build/transport.d.ts@ e29cc2e

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

primeNG components

  • Property mode set to 100644
File size: 1.8 KB
Line 
1/// <reference types="node" />
2import { EventEmitter } from "events";
3import { IncomingMessage } from "http";
4export declare abstract class Transport extends EventEmitter {
5 sid: string;
6 writable: boolean;
7 protocol: number;
8 protected _readyState: string;
9 protected discarded: boolean;
10 protected parser: any;
11 protected req: IncomingMessage & {
12 cleanup: Function;
13 };
14 protected supportsBinary: boolean;
15 get readyState(): string;
16 set readyState(state: string);
17 /**
18 * Transport constructor.
19 *
20 * @param {http.IncomingMessage} request
21 * @api public
22 */
23 constructor(req: any);
24 /**
25 * Flags the transport as discarded.
26 *
27 * @api private
28 */
29 discard(): void;
30 /**
31 * Called with an incoming HTTP request.
32 *
33 * @param {http.IncomingMessage} request
34 * @api protected
35 */
36 protected onRequest(req: any): void;
37 /**
38 * Closes the transport.
39 *
40 * @api private
41 */
42 close(fn?: any): void;
43 /**
44 * Called with a transport error.
45 *
46 * @param {String} message error
47 * @param {Object} error description
48 * @api protected
49 */
50 protected onError(msg: string, desc?: any): void;
51 /**
52 * Called with parsed out a packets from the data stream.
53 *
54 * @param {Object} packet
55 * @api protected
56 */
57 protected onPacket(packet: any): void;
58 /**
59 * Called with the encoded packet data.
60 *
61 * @param {String} data
62 * @api protected
63 */
64 protected onData(data: any): void;
65 /**
66 * Called upon transport close.
67 *
68 * @api protected
69 */
70 protected onClose(): void;
71 abstract get supportsFraming(): any;
72 abstract get name(): any;
73 abstract send(packets: any): any;
74 abstract doClose(fn?: any): any;
75}
Note: See TracBrowser for help on using the repository browser.