createDiscoveryAction method

  1. @override
BonsoirAction<BonsoirDiscoveryEvent> createDiscoveryAction(
  1. String type, {
  2. bool printLogs = kDebugMode,
})

This method returns an initialized subclass of BonsoirAction holding the eventStreams and other state needed for the implementations.

Implementation

@override
BonsoirAction<BonsoirDiscoveryEvent> createDiscoveryAction(String type,
    {bool printLogs = kDebugMode}) {
  return _discoveryFactory(type, printLogs);
}