close method

Future close({
  1. bool forceClose = false,
})

Closes the web socket connection.

Implementation

Future close({bool forceClose = false}) async {
  return _socket?.close(forceClose: forceClose);
}