human-readable name shown to browsers (e.g. "My Web Server")
service type in "_proto._tcp." or "_proto._udp." form
port number the service listens on
mDNS domain; defaults to "local." if an empty string is passed
Optionalcallback: ((event: string, error?: string) => void) | nullOptional function called on status changes with event name and optional error message
Starts advertising a local service on the network. If
domainis omitted or not a string, it defaults to"local.". If the 4th argument is a function, it is used as the callback and domain defaults to"local.".