close method

Future<void> close()

Closes server connection

Implementation

Future<void> close() async {
  nsps['/']!.sockets.toList(growable: false).forEach((socket) {
    socket.onClose();
  });

  engine?.close();

  if (httpServer != null) {
    await httpServer!.close();
  }

  _ready = null;
}