stop method

Future<void> stop()

Stop the server

Implementation

Future<void> stop() async {
  _sigintSub?.cancel();
  _sigtermSub?.cancel();
  await _server?.close();
  _server = null;
}