capacitor-community-smdns
v0.0.1
Published
simple mdns
Downloads
5
Readme
capacitor-community-smdns
simple mdns
Currently only works on android.
Hint
You may not be able to get the host and port. It is not clear to me what is going on.
My suggestion is to use the server name to pass the information.
Install
npm install capacitor-community-smdns
npx cap sync
API
discoverServices(...)
discoverServices(type: string, cb: DiscoverServicesCbArgs) => Promise<CallbackId>
| Param | Type |
| ---------- | ------------------------------------------------------------------------- |
| type
| string |
| cb
| DiscoverServicesCbArgs |
Returns: Promise<string>
Type Aliases
DiscoverServicesCbArgs
{ onServiceFound?: (name: string, host?: string, port?: number) => void; onServiceLost?: (name: string, host?: string, port?: number) => void; }
CallbackId
string