Skip to content

Conversation

nioc
Copy link
Contributor

@nioc nioc commented Mar 2, 2025

Hello, it is me again 😉

Here a proposal for allowing user to choose which message received from the websocket will be handled:

image

@nioc nioc marked this pull request as draft March 2, 2025 10:05
- Fix Isaksson#150 avoiding reconnection if disconnection was caused by Node-RED
- Do not send previous message in error
- Adding a graceful stop with code 1001
- handleDataCallback function modified to provide more typed information
- Removing event listeners to free memory
@nioc nioc marked this pull request as ready for review March 2, 2025 19:23
@nioc
Copy link
Contributor Author

nioc commented Mar 2, 2025

As explained in the commit message, during my tests I noticed a problem with duplicate messages, which led me to refactor some code.

Don't hesitate to let me know if something isn't right for you.

Here is a draft package if you want to test it (rename it by removing .txt of course).
node-red-contrib-unifi-0.3.23.tgz.txt

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

Successfully merging this pull request may close these issues.

1 participant