Skip to content
This repository has been archived by the owner on Aug 21, 2019. It is now read-only.

Same service sent x found times #1

Open
genox opened this issue Jun 9, 2016 · 1 comment
Open

Same service sent x found times #1

genox opened this issue Jun 9, 2016 · 1 comment

Comments

@genox
Copy link

genox commented Jun 9, 2016

Hi there,

This is iOS specific: When I expect 3 services of the same type to show up, I get 3 callbacks fired in JS but they each have the same object as their parameter.

Is there a chance that you can look at the ObjC? I have to admit I never used anything in ObjC and I think it would be as simple as pushing or shifting an array but I don't even know where to start. :-P

Thanks!

@genox
Copy link
Author

genox commented Jun 9, 2016

Here's a log from the device:

Jun  9 16:08:53 iPhone MyApp[6969] <Warning>: regType: _myservice._tcp, domain: local.
Jun  9 16:08:53 iPhone MyApp[6969] <Warning>: didFindService name myservice1
Jun  9 16:08:53 iPhone MyApp[6969] <Warning>: didFindService name myservice2
Jun  9 16:08:53 iPhone MyApp[6969] <Warning>: didFindService name myservice3
Jun  9 16:08:53 iPhone MyApp[6969] <Warning>: netServiceDidResolveAddress: <NSNetService 0x16624400> local. _myservice._tcp. myservice3

  • netServiceBrowser found 3 services
  • netServiceDidResolveAddress only returns the last service that has been discovered

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant