New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

capacitor-plugin-nsd

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capacitor-plugin-nsd

capacitor plugin nsd

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

capacitor-plugin-nsd

capacitor plugin nsd

Install

npm install capacitor-plugin-nsd
npx cap sync

API

stopNetworkService()

stopNetworkService() => Promise<void>

startFindNewtworkService(...)

startFindNewtworkService(params: DiscoveryParam) => Promise<void>
ParamType
paramsDiscoveryParam

addListener('onServiceResolved', ...)

addListener(eventName: "onServiceResolved", listenerFunc: (data: NetService) => void) => Promise<PluginListenerHandle> & PluginListenerHandle

Called when a service is resolved and result received.

Provides NetService result.

ParamType
eventName'onServiceResolved'
listenerFunc(data: NetService) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle

Since: 0.0.1


addListener('onServiceRemoved', ...)

addListener(eventName: "onServiceRemoved", listenerFunc: (data: NetService) => void) => Promise<PluginListenerHandle> & PluginListenerHandle

Called when a service is removed and result received.

Provides NetService result.

ParamType
eventName'onServiceRemoved'
listenerFunc(data: NetService) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle

Since: 0.0.1


addListener('onDiscoveryStopped', ...)

addListener(eventName: "onDiscoveryStopped", listenerFunc: (data: any) => void) => Promise<PluginListenerHandle> & PluginListenerHandle

Called when a service discovery is stopped.

Provides no result.

ParamType
eventName'onDiscoveryStopped'
listenerFunc(data: any) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle

Since: 0.0.1


addListener('onServiceError', ...)

addListener(eventName: "onServiceError", listenerFunc: (data: NetServiceError) => void) => Promise<PluginListenerHandle> & PluginListenerHandle

Called on a service error and error received.

Provides NetServiceError result.

ParamType
eventName'onServiceError'
listenerFunc(data: NetServiceError) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle

Since: 0.0.1


Interfaces

DiscoveryParam
PropType
typestring
domainstring
PluginListenerHandle
PropType
remove() => Promise<void>
NetService
PropType
printerCountnumber
serviceNamestring
isUntrustedCertboolean
isSearchableboolean
serviceTypenumber
serviceIDstring
serviceURLstring
NetServiceError
PropType
codestring
errorstring

Keywords

FAQs

Package last updated on 05 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc