mdns-listener-advanced 3.0.0
Install from the command line:
Learn more about npm packages
$ npm install @aminekun90/mdns-listener-advanced@3.0.0
Install via package.json:
"@aminekun90/mdns-listener-advanced": "3.0.0"
About this version
Advanced mDNS Listener to add and listen .local hostnames in your network compatible with zeroconf, bonjour, avahi
I recommand using python publisher https://github.com/aminekun90/python_zeroconf_publisher since this code is fully compatible with it, if you dont have access to it you can contact me further bellow ;) I can make you an offer.
Note: The original idea was from @Richie765 https://github.com/Richie765/mdns-listener and got updated and enhanced, few parts of the original code still exist, recently updated to typescript.
npm install mdns-listener-advanced
TBD
TBD
TBD
Deprecated since version 3.0.0
Functions | Params | Type | Description |
---|---|---|---|
new advanced_mdns(list_hosts) |
list_hosts | Array<string> |
List of hostnames |
new advanced_mdns(..,mdns_hosts_path) |
mdns_hosts_path | string |
Full path of your .mdns-hosts |
.listen().on(event,callback(object)) |
event | string |
To catch a response event when set to "response"
|
callback | function(object) |
callback to do custome code | |
object | object |
a received object i.e {MyDevice1:{...}}
|
|
.stop() |
to stop the event listener |
TBD
TBD
Contact me on Linkedin Here.