close abstract method

FutureOr<void> close(
  1. Peer peer, [
  2. int? code,
  3. String? reason
])

Hooks for websocet close.

Implementation

FutureOr<void> close(Peer peer, [int? code, String? reason]);