omgosc
omgosc copied to clipboard
adding sender info to params array of the receiver
Having the IP address of the OSC sender is really useful if you're expecting multiple clients. Would be great if you'd be willing to pull this in and push to npm so I don't have to make a duplicate package for this one line of code.
Thanks for a great library!
Sorry, I don't see any changes to the processMessageOrBundle definition in this pull request, is the commit for that not included?

It's the change in green in the image included with your last comment. I added a info:rinfo field to the event object on line 246.
Let me know if I'm confused... - Charlie
I was asking where is the change to the signature of processMessageOrBundle, how does rinfo get passed from the udp message callback into processMessageOrBundle? I don't see anything related to this in your pull request.
The screenshot I posted is the entire change within this pull request, not just a portion of it.
Sorry, that was completely boneheaded of me; I had made these changes in a different project a long time ago and forgotten about them. I tested this commit and it works fine.
Thanks. There are two things.
-
On a quick look, I think this patch is faulty, because you'll notice processMessageOrBundle can be recursive for unpacking bundled messages, and you haven't updated that call, so I believe this wouldn't work correctly for bundled message.
-
I want to give a little think about the best way to send sender data back on the event, and which data should be sent. I haven't looked at this code in a while, so I have to remember my intentions, since OSC in theory can run over usb, udp, tcp, etc. Maybe it should at least identify that it was from a udp source.
Anyway, I agree with the overall idea of sending back information about the connection, I will give it a think and write up something like this or similar and let you know.
Thanks