netService

fun netService(type: String, name: String, configure: NetServiceConfig.() -> Unit = {}): NetService

Create a new DNS-SD to publish on the network. Make sure to call this on the main thread.

Return

the platform instance of the service to register or unregister

Parameters

type

the service type (e.g. _example._tcp)

name

the name of the service to publish

See also