k-yle / sACN

💡 🎭 Send & Receive sACN data (DMX over IP) in node.js
https://npm.im/sacn
Apache License 2.0
28 stars 12 forks source link

Send data to multiple universes #56

Closed highlyinteractive closed 9 months ago

highlyinteractive commented 9 months ago

I notice you can only have one universe on the sender.

Is there a recommended way to send data to multiple universes?

k-yle commented 9 months ago

Hey, the current approach is to create one Sender class per universe, a bit like this:

https://github.com/k-yle/sACN/blob/bfe007ab100386dc7bb4f932a88d0e83d5ea02b7/test/integration.test.ts#L15-L16

highlyinteractive commented 9 months ago

Great, that makes sense. Thanks