cordova - How to use mDNS in AngularJS / ionic? -


i want use cordova plugin use mdns: https://github.com/stevenpack/phonegap-multicastdns

but there no example code or guides, , quite new angularjs , ionic. how use plugin? , how can derive plugin code?

this i've got far:

added plugin:

cordova plugin add https://github.com/stevenpack/phonegap-multicastdns.git 

it went ok , have "plugins/com.koalasafe.cordova.plugin.multicastdns" folder.

now guess need include controller , use functions?

you can use in angular code following way

multicastdnsplugin.query(host, multicastip, port, successcallback, errorcallback) 

for more create issues on author source directory here , understand flow of customize plugin refer link

hopes !


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -