-
Notifications
You must be signed in to change notification settings - Fork 15
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
fix: add rinfo to UDPHelper message event #103
Conversation
- Moved `setBroadcast(true)` into 'listening' event to better ensure that bind() has been completed successfully, resolving EBADF error
- Added rinfo argument to message event as it was omitted. - Added emit to 'message' event for consistency. - Including original 'data' event for projects that expect it, as well as rinfo. - Renamed data arg to msg, inline with nodejs api.
Interesting, I sort of understand why it might be best to leave But I'm unsure why the |
I don't think we should emit both 'data' and 'message' events. I expect that will lead to confusion from module devs questioning what the difference is and which they should use. That typings issue is because you need to update the typescript interface here: companion-module-base/src/helpers/udp.ts Line 30 in cfb2a75
That line will need updating to include the new parameter with the correct type |
- Removed possibly confusing suggestion to emit to 'message' - Included rinfo parameter to event and emit - Updated data packet to include rinfo Object
I agree that might cause some confusion. |
This is in v1.11.2 |
well as rinfo.