close method

Future<bool> close({
  1. CloseCode code = CloseCode.normal,
})

Implementation

Future<bool> close({CloseCode code = CloseCode.normal}) async {
  await _mainSocket.close();
  return Future.value(true);
}