close method
Closes the underlying StreamChannel
.
Implementation
Future close() async {
scheduleMicrotask(() async {
await channel.sink.close();
await _onAction.close();
await _onAuthenticated.close();
await _onData.close();
_onClose.add(null);
await _onClose.close();
});
}