This post is part of the Local Network Privacy FAQ.
To form the value for the Bonjour services property (NSBonjourServices), take your Multipeer Connectivity service type and add a leading underscore (_) and trailing ._tcp. For example, if you pass waffle-varnish to the serviceType parameter of init(serviceType:discoveryInfo:session:), add _waffle-varnish._tcp.
Back to the FAQ
How do I map my Multipeer Connectivity service type to an entry in the Bonjour services property?
To form the value for the Bonjour services property (NSBonjourServices), take your Multipeer Connectivity service type and add a leading underscore (_) and trailing ._tcp. For example, if you pass waffle-varnish to the serviceType parameter of init(serviceType:discoveryInfo:session:), add _waffle-varnish._tcp.
Back to the FAQ