Shutdown all the servers registered with all connections forcefully disconnected.
Register a server adapter with the system. Name should be a string and adapter is an object that contains a
close(server, callback)
function that is responsible for closing the server and a socketClose(socket)
function that is responsible for destroying the sockets the server creates.
The unique name of the adapter
The adapter instance
Shutdown all the registered servers.
The callback called once all connections are disconnected and servers are closed.
Generated using TypeDoc
Creates an instance of ServerShutdown