close abstract method

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

Closes the socket.

Implementation

Future<void> close({int? code, String? reason});