destroy method

Future<void> destroy()

Close the websocket connection.

Implementation

Future<void> destroy() async {
  await channel.sink.close(status.normalClosure);
}