close abstract method

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

Closes the WebSocket connection. Optionally set code and reason to send close information to the remote peer.

Implementation

@override
Future<Null> close([int? code, String? reason]);