closeStreamingMethodConnections method
Future<void>
closeStreamingMethodConnections({
- Object? exception = const WebSocketClosedException(),
Closes all open streaming method connections.
exception is an optional exception that will be thrown to all
listeners of open streams.
If exception is not provided, a WebSocketClosedException will be
thrown.
Implementation
Future<void> closeStreamingMethodConnections({
Object? exception = const WebSocketClosedException(),
}) async {
await _methodStreamManager.closeAllConnections(exception);
}