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

Receive bye notification #3

Open
madCoder24 opened this issue Jul 1, 2017 · 1 comment
Open

Receive bye notification #3

madCoder24 opened this issue Jul 1, 2017 · 1 comment

Comments

@madCoder24
Copy link

Is there an event for ssdp:byebye? I have tried using 'remove:' but that doesn't appear to work for me. Is there a code sample somewhere? Any advice offered would be greatly appreciated.

This is a very useful library.

@davidatingenuity
Copy link

You could try:
upnp.on('remove:*', () => {
console.info('<- byebye received')
})

I can't see a way to see which device sent the byebye, though. If you need that, you can listen to 'ssdp:notify' instead, and filter for byebye messages in your listener.
See commands/notify.js for an example

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