|
|
|
import { EventEmitter } from "events"; |
|
import { IncomingMessage } from "http"; |
|
import { Packet } from "engine.io-parser"; |
|
export declare abstract class Transport extends EventEmitter { |
|
sid: string; |
|
writable: boolean; |
|
protocol: number; |
|
protected _readyState: string; |
|
protected discarded: boolean; |
|
protected parser: any; |
|
protected req: IncomingMessage & { |
|
cleanup: Function; |
|
}; |
|
protected supportsBinary: boolean; |
|
get readyState(): string; |
|
set readyState(state: string); |
|
|
|
|
|
|
|
|
|
|
|
|
|
constructor(req: any); |
|
|
|
|
|
|
|
|
|
|
|
discard(): void; |
|
|
|
|
|
|
|
|
|
|
|
|
|
protected onRequest(req: any): void; |
|
|
|
|
|
|
|
|
|
|
|
close(fn?: any): void; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected onError(msg: string, desc?: any): void; |
|
|
|
|
|
|
|
|
|
|
|
|
|
protected onPacket(packet: Packet): void; |
|
|
|
|
|
|
|
|
|
|
|
|
|
protected onData(data: any): void; |
|
|
|
|
|
|
|
|
|
|
|
protected onClose(): void; |
|
abstract get supportsFraming(): any; |
|
abstract get name(): any; |
|
abstract send(packets: any): any; |
|
abstract doClose(fn?: any): any; |
|
} |
|
|