restart method

Future<void> restart()

Restart the server

Implementation

Future<void> restart() async {
  final port = this.port;
  final host = this.host;
  final onReady = _onReady;

  await close(force: true);
  await listen(port, host, onReady);
}