INodeServer interface
Represents a Server from the net
module in Node.js.
This interface supports the framework and is not intended to be called directly for your code.
- Extends
Properties
constructor |
Methods
close((err?: Error) => void) | |
listen(number, string, number, () => void) | |
listen(string, () => void) |
Inherited Methods
Property Details
constructor
constructor: this
Property Value
this
Method Details
close((err?: Error) => void)
function close(callback?: (err?: Error) => void): this
Parameters
- callback
-
(err?: Error) => void
Returns
this
listen(number, string, number, () => void)
function listen(port?: number, hostname?: string, backlog?: number, listeningListener?: () => void): this
Parameters
- port
-
number
- hostname
-
string
- backlog
-
number
- listeningListener
-
() => void
Returns
this
listen(string, () => void)
function listen(path: string, listeningListener?: () => void): this
Parameters
- path
-
string
- listeningListener
-
() => void
Returns
this
Inherited Method Details
addListener(string | symbol, (args: any[]) => void)
function addListener(event: string | symbol, listener: (args: any[]) => void): this
Parameters
- event
-
string | symbol
- listener
-
(args: any[]) => void
Returns
this
Inherited From IEventEmitter.addListener
emit(string | symbol, any[])
function emit(event: string | symbol, args: any[]): boolean
Parameters
- event
-
string | symbol
- args
-
any[]
Returns
boolean
Inherited From IEventEmitter.emit
eventNames()
function eventNames(): Array<string | symbol>
Returns
Array<string | symbol>
Inherited From IEventEmitter.eventNames
getMaxListeners()
listenerCount(string | symbol)
function listenerCount(type: string | symbol): number
Parameters
- type
-
string | symbol
Returns
number
Inherited From IEventEmitter.listenerCount
listeners(string | symbol)
function listeners(event: string | symbol): Function[]
Parameters
- event
-
string | symbol
Returns
Function[]
Inherited From IEventEmitter.listeners
off(string | symbol, (args: any[]) => void)
function off(event: string | symbol, listener: (args: any[]) => void): this
Parameters
- event
-
string | symbol
- listener
-
(args: any[]) => void
Returns
this
Inherited From IEventEmitter.off
on(string | symbol, (args: any[]) => void)
function on(event: string | symbol, listener: (args: any[]) => void): this
Parameters
- event
-
string | symbol
- listener
-
(args: any[]) => void
Returns
this
Inherited From IEventEmitter.on
once(string | symbol, (args: any[]) => void)
function once(event: string | symbol, listener: (args: any[]) => void): this
Parameters
- event
-
string | symbol
- listener
-
(args: any[]) => void
Returns
this
Inherited From IEventEmitter.once
prependListener(string | symbol, (args: any[]) => void)
function prependListener(event: string | symbol, listener: (args: any[]) => void): this
Parameters
- event
-
string | symbol
- listener
-
(args: any[]) => void
Returns
this
Inherited From IEventEmitter.prependListener
prependOnceListener(string | symbol, (args: any[]) => void)
function prependOnceListener(event: string | symbol, listener: (args: any[]) => void): this
Parameters
- event
-
string | symbol
- listener
-
(args: any[]) => void
Returns
this
Inherited From IEventEmitter.prependOnceListener
rawListeners(string | symbol)
function rawListeners(event: string | symbol): Function[]
Parameters
- event
-
string | symbol
Returns
Function[]
Inherited From IEventEmitter.rawListeners
removeAllListeners(string | symbol)
function removeAllListeners(event?: string | symbol): this
Parameters
- event
-
string | symbol
Returns
this
Inherited From IEventEmitter.removeAllListeners
removeListener(string | symbol, (args: any[]) => void)
function removeListener(event: string | symbol, listener: (args: any[]) => void): this
Parameters
- event
-
string | symbol
- listener
-
(args: any[]) => void
Returns
this
Inherited From IEventEmitter.removeListener
setMaxListeners(number)
function setMaxListeners(n: number): this
Parameters
- n
-
number
Returns
this
Inherited From IEventEmitter.setMaxListeners