close method
Closes server connection
@return a Future that resolves when the httpServer is closed @api public
Implementation
Future<void> close() async {
nsps['/']!.sockets.toList(growable: false).forEach((socket) {
socket.onclose();
});
engine?.close();
if (httpServer != null) {
await httpServer!.stop();
}
_ready = null;
}