sebastianhaberey / nsd

Flutter Network Service Discovery (NSD) Plugin
61 stars 30 forks source link

Add alternative discovery listening mechanism to handle "service found" and "service lost" events manually #20

Closed sebastianhaberey closed 2 years ago

sebastianhaberey commented 2 years ago

Description

The existing discovery mechanism where the services reside in a plugin-managed observable collection is geared towards displaying services in a UI and having the user select one. In other use cases the client might want to maintain the collection manually (for example if the results must be filtered) or just react to the found / lost events without maintaining a collection at all. This should be trivial to add and will give the user more choice.

Scenario

Use the plugin in my own application via Flutter dependency

Platform

All of them

sebastianhaberey commented 2 years ago

Done (version 2.2.0)