disconnect abstract method

Future<void> disconnect([
  1. int? code,
  2. String? reason
])

Closes the WebSocket connection

Implementation

Future<void> disconnect([int? code, String? reason]);