Skip to main content
Version: Next

Taro.onLocalServiceLost(callback)

Listens on the mDNS service loss event.

Reference

Type

(callback: Callback) => void

Parameters

Callback

The callback function for the mDNS service loss event.

(result: CallbackResult) => void
PropertyType
resultCallbackResult

CallbackResult

PropertyTypeDescription
serviceNamestringService name
serviceTypestringService type

API Support

APIWeChat Mini-ProgramH5React Native
Taro.onLocalServiceLost✔️