INodeServer interface
Representa un servidor del módulo de net
en Node.js.
Esta interfaz admite el marco y no está pensado para llamarse directamente para el código.
- Extends
Propiedades
constructor |
Métodos
close((err?: Error) => void) | |
listen(number, string, number, () => void) | |
listen(string, () => void) |
Métodos heredados
Detalles de las propiedades
constructor
constructor: this
Valor de propiedad
this
Detalles del método
close((err?: Error) => void)
function close(callback?: (err?: Error) => void): this
Parámetros
- callback
-
(err?: Error) => void
Devoluciones
this
listen(number, string, number, () => void)
function listen(port?: number, hostname?: string, backlog?: number, listeningListener?: () => void): this
Parámetros
- port
-
number
- hostname
-
string
- backlog
-
number
- listeningListener
-
() => void
Devoluciones
this
listen(string, () => void)
function listen(path: string, listeningListener?: () => void): this
Parámetros
- path
-
string
- listeningListener
-
() => void
Devoluciones
this
Detalles de los métodos heredados
addListener(string | symbol, (args: any[]) => void)
function addListener(event: string | symbol, listener: (args: any[]) => void): this
Parámetros
- event
-
string | symbol
- listener
-
(args: any[]) => void
Devoluciones
this
emit(string | symbol, any[])
function emit(event: string | symbol, args: any[]): boolean
Parámetros
- event
-
string | symbol
- args
-
any[]
Devoluciones
boolean
heredado deIEventEmitter.emit
eventNames()
function eventNames(): Array<string | symbol>
Devoluciones
Array<string | symbol>
getMaxListeners()
listenerCount(string | symbol)
function listenerCount(type: string | symbol): number
Parámetros
- type
-
string | symbol
Devoluciones
number
listeners(string | symbol)
function listeners(event: string | symbol): Function[]
Parámetros
- event
-
string | symbol
Devoluciones
Function[]
off(string | symbol, (args: any[]) => void)
function off(event: string | symbol, listener: (args: any[]) => void): this
Parámetros
- event
-
string | symbol
- listener
-
(args: any[]) => void
Devoluciones
this
heredado deIEventEmitter.off
on(string | symbol, (args: any[]) => void)
function on(event: string | symbol, listener: (args: any[]) => void): this
Parámetros
- event
-
string | symbol
- listener
-
(args: any[]) => void
Devoluciones
this
heredado deIEventEmitter.on
once(string | symbol, (args: any[]) => void)
function once(event: string | symbol, listener: (args: any[]) => void): this
Parámetros
- event
-
string | symbol
- listener
-
(args: any[]) => void
Devoluciones
this
heredado deIEventEmitter.once
prependListener(string | symbol, (args: any[]) => void)
function prependListener(event: string | symbol, listener: (args: any[]) => void): this
Parámetros
- event
-
string | symbol
- listener
-
(args: any[]) => void
Devoluciones
this
prependOnceListener(string | symbol, (args: any[]) => void)
function prependOnceListener(event: string | symbol, listener: (args: any[]) => void): this
Parámetros
- event
-
string | symbol
- listener
-
(args: any[]) => void
Devoluciones
this
rawListeners(string | symbol)
function rawListeners(event: string | symbol): Function[]
Parámetros
- event
-
string | symbol
Devoluciones
Function[]
removeAllListeners(string | symbol)
function removeAllListeners(event?: string | symbol): this
Parámetros
- event
-
string | symbol
Devoluciones
this
removeListener(string | symbol, (args: any[]) => void)
function removeListener(event: string | symbol, listener: (args: any[]) => void): this
Parámetros
- event
-
string | symbol
- listener
-
(args: any[]) => void
Devoluciones
this