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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -