# wx.stopLocalServiceDiscovery(Object object)
Start from base library version 2.4.0. Please remaining backward compatible.
with Promise style call: Supported
Mini Program plugin: Support, need to Mini Program base library version no less than 2.15.0
Stop searching. mDNS service
# parameter
# Object object
| attribute | type | Default values | Required | Introductions |
|---|---|---|---|---|
| success | function | no | Interface calls the successful callback function | |
| fail | function | no | Interface calls failed callback functions | |
| complete | function | no | Callback function at the end of an interface call (both successful and unsuccessful calls are executed) |
# object.fail callback
# parameter
# Object res
| attribute | type | Introductions |
|---|---|---|
| errMsg | string | Error message |
res.errMsg Legal value
| value | Introductions | Minimum version |
|---|---|---|
| task not found | Called if it is not currently in the search service stopLocalServiceDiscovery |