A callback to close the client's channel with a code and reason
code
reason
typedef CloseWithReason = Future<void> Function([int? code, String? reason]);