close method

Future<void> close()

Closes every connection and stops the server.

Implementation

Future<void> close() async {
  refuseConnections = true;
  await dropConnections();
  await _received.close();
}