Skip to main content

emit

method Server.prototype.emit
Jump to headingServer.prototype.emit(
event: string,
...args: any[],
): boolean

Parameters Jump to heading

Jump to headingevent: string
Jump to heading<span>...args</span>: any[]

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(event: "close"): boolean

Parameters Jump to heading

Jump to headingevent: "close"

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "connection",
socket: Socket,
): boolean

Parameters Jump to heading

Jump to headingevent: "connection"

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "error",
err: Error,
): boolean

Parameters Jump to heading

Jump to headingevent: "error"

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(event: "listening"): boolean

Parameters Jump to heading

Jump to headingevent: "listening"

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "checkContinue",
req: InstanceType<Request>,
res: InstanceType<Response> & { req: InstanceType<Request>; },
): boolean

Parameters Jump to heading

Jump to headingevent: "checkContinue"
Jump to headingreq: InstanceType<Request>
Jump to headingres: InstanceType<Response> & { req: InstanceType<Request>; }

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "checkExpectation",
req: InstanceType<Request>,
res: InstanceType<Response> & { req: InstanceType<Request>; },
): boolean

Parameters Jump to heading

Jump to headingevent: "checkExpectation"
Jump to headingreq: InstanceType<Request>
Jump to headingres: InstanceType<Response> & { req: InstanceType<Request>; }

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "clientError",
err: Error,
socket: stream.Duplex,
): boolean

Parameters Jump to heading

Jump to headingevent: "clientError"
Jump to headingsocket: stream.Duplex

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "connect",
req: InstanceType<Request>,
socket: stream.Duplex,
head: Buffer,
): boolean

Parameters Jump to heading

Jump to headingevent: "connect"
Jump to headingreq: InstanceType<Request>
Jump to headingsocket: stream.Duplex
Jump to headinghead: Buffer

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "dropRequest",
req: InstanceType<Request>,
socket: stream.Duplex,
): boolean

Parameters Jump to heading

Jump to headingevent: "dropRequest"
Jump to headingreq: InstanceType<Request>
Jump to headingsocket: stream.Duplex

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "request",
req: InstanceType<Request>,
res: InstanceType<Response> & { req: InstanceType<Request>; },
): boolean

Parameters Jump to heading

Jump to headingevent: "request"
Jump to headingreq: InstanceType<Request>
Jump to headingres: InstanceType<Response> & { req: InstanceType<Request>; }

Return Type Jump to heading

boolean
Jump to headingServer.prototype.emit(
event: "upgrade",
req: InstanceType<Request>,
socket: stream.Duplex,
head: Buffer,
): boolean

Parameters Jump to heading

Jump to headingevent: "upgrade"
Jump to headingreq: InstanceType<Request>
Jump to headingsocket: stream.Duplex
Jump to headinghead: Buffer

Return Type Jump to heading

boolean
Back to top