disconnect method

Future<bool?> disconnect({
  1. int code = 1000,
  2. String reason = 'Client done.',
})

Initialize ws connection close by client. When connection is successfully closed, onWsClosed will be invoked.

Implementation

Future<bool?> disconnect({
  int code = 1000,
  String reason = 'Client done.',
}) {
  throw UnimplementedError('disconnect() has not been implemented.');
}