Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make a new instance of mdns ? #61

Open
kingeaglewang opened this issue Sep 27, 2018 · 2 comments
Open

How to make a new instance of mdns ? #61

kingeaglewang opened this issue Sep 27, 2018 · 2 comments

Comments

@kingeaglewang
Copy link

Hello,

After I run mdns.destroy();

I would like to re-run the mdns after a button click event.

Author advises me to make a new instance.

But I do as README said.
mdns = multicastdns();

But it gets error
Uncaught ReferenceError: multicastdns is not defined

Thank for helping.

@mafintosh
Copy link
Owner

You have to require it first, const multicastdns = require('multicast-dns')

@kingeaglewang
Copy link
Author

Thanks for solving my problem.
And, thanks for answering my problem so quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants