close abstract method

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

Cloese the websocket.

Implementation

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