CloseWithReason typedef

CloseWithReason = Future<void> Function([int? code, String? reason])

A callback to close the client's channel with a code and reason

Implementation

typedef CloseWithReason = Future<void> Function([int? code, String? reason]);