Skip to main content

on

method REPLServer.prototype.on
Jump to headingREPLServer.prototype.on(
event: string,
listener: (...args: any[]) => void,
): this

Parameters Jump to heading

Jump to headingevent: string
Jump to headinglistener: (...args: any[]) => void

Return Type Jump to heading

this
Jump to headingREPLServer.prototype.on(
event: "close",
listener: () => void,
): this

Parameters Jump to heading

Jump to headingevent: "close"
Jump to headinglistener: () => void

Return Type Jump to heading

this
Jump to headingREPLServer.prototype.on(
event: "line",
listener: (input: string) => void,
): this

Parameters Jump to heading

Jump to headingevent: "line"
Jump to headinglistener: (input: string) => void

Return Type Jump to heading

this
Jump to headingREPLServer.prototype.on(
event: "pause",
listener: () => void,
): this

Parameters Jump to heading

Jump to headingevent: "pause"
Jump to headinglistener: () => void

Return Type Jump to heading

this
Jump to headingREPLServer.prototype.on(
event: "resume",
listener: () => void,
): this

Parameters Jump to heading

Jump to headingevent: "resume"
Jump to headinglistener: () => void

Return Type Jump to heading

this
Jump to headingREPLServer.prototype.on(
event: "SIGCONT",
listener: () => void,
): this

Parameters Jump to heading

Jump to headingevent: "SIGCONT"
Jump to headinglistener: () => void

Return Type Jump to heading

this
Jump to headingREPLServer.prototype.on(
event: "SIGINT",
listener: () => void,
): this

Parameters Jump to heading

Jump to headingevent: "SIGINT"
Jump to headinglistener: () => void

Return Type Jump to heading

this
Jump to headingREPLServer.prototype.on(
event: "SIGTSTP",
listener: () => void,
): this

Parameters Jump to heading

Jump to headingevent: "SIGTSTP"
Jump to headinglistener: () => void

Return Type Jump to heading

this
Jump to headingREPLServer.prototype.on(
event: "exit",
listener: () => void,
): this

Parameters Jump to heading

Jump to headingevent: "exit"
Jump to headinglistener: () => void

Return Type Jump to heading

this
Jump to headingREPLServer.prototype.on(
event: "reset",
listener: (context: Context) => void,
): this

Parameters Jump to heading

Jump to headingevent: "reset"
Jump to headinglistener: (context: Context) => void

Return Type Jump to heading

this
Back to top