connection method

  1. @override
BroadcastDriver connection([
  1. String? name
])
override

Get the broadcast driver for the given name, or the default connection.

Calling without arguments returns (and caches) the default connection defined by broadcasting.default in config. Passing an explicit name resolves that named connection without affecting the cache.

final driver = BroadcastManager().connection();          // default
final reverb = BroadcastManager().connection('reverb'); // named

Implementation

@override
BroadcastDriver connection([String? name]) => _driver;