Returns the bound address.
Stops the server from accepting new connections and keeps existing connections.
This function is synchronous.
Start a server listening for connections on the given path. This function is synchronous.
Reference the server so that it will prevent Node.js process from exiting automatically.
Unreference the server so that it won't prevent Node.js process from exiting automatically.
Generated using TypeDoc
SeqpacketServer is used to create a SOCK_SEQPACKET server. Note that sockets of SOCK_SEQPACKET don't works on MacOS and currently SeqpacketServer doesn't work with
cluster
module, i.e. you can't share a SeqpacketServer across different Node.js processes.SeqpacketServer is also an
EventEmitter
and will emit events including:Event:
'connection'
:SeqpacketSocket
string
Emitted when a new connection is made.
Event:
'error'
Error
Emitted when an error occurs.
Event:
'close'
Emitted when the server closes.