feat: optimize event slow exec cache
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
@ -2,7 +2,7 @@ import { EventEmitter } from "events"
|
||||
import * as parser_v4 from "../engine.io-parser"
|
||||
import * as parser_v3 from "./parser-v3"
|
||||
// import debugModule from "debug"
|
||||
import { IncomingMessage } from "http"
|
||||
// import { IncomingMessage } from "http"
|
||||
import { Packet } from "../engine.io-parser"
|
||||
|
||||
// const debug = debugModule("engine:transport")
|
||||
@ -24,7 +24,8 @@ export abstract class Transport extends EventEmitter {
|
||||
protected _readyState: string
|
||||
protected discarded: boolean
|
||||
protected parser: any
|
||||
protected req: IncomingMessage & { cleanup: Function }
|
||||
// protected req: IncomingMessage & { cleanup: Function }
|
||||
protected req: { cleanup: Function }
|
||||
protected supportsBinary: boolean
|
||||
|
||||
get readyState() {
|
||||
|
Reference in New Issue
Block a user