Closed mdev88 closed 1 year ago
You're right, it shouldn't be an error. It was kind of simple solution to avoid extra logic in the listener. This is the commit that introduced it https://github.com/Nimrodda/flutter_nsd/commit/93fe2a4fb49a66cbf24d86b85c090d9d012b69f3 I'm open to suggestions/contributions if you'd like to change it.
I don't think I'm capable of proposing a better way, so I'll keep using the onError callback knowing that it is by design.
Thanks!
If I start the discovery and then stop it with stopDiscovery(), I receive a "NsdErrorCode.discoveryStopped" error in the stream listener. Is this by design or am I doing something wrong here?
Thanks!
This is my implementation: