close method
Close dispatcher
Implementation
Future<void> close() async {
await disconnect();
await _messageController.close();
await _stateController.close();
await _errorController.close();
for (final transport in _transports) {
await transport.close();
}
}