PeerGroup is an Array subclass that spoofs a NetAddr. You can use it send messages to a group of Peers at the same time. PeerGroups can be constructed manually or using a PeerGroupManager which syncs groups across a Utopia. As well, AddrBook provides a number of convenience methods:
Create a new PeerGroup.
name |
A Symbol naming the group. |
peers |
A Collection of Peers to add to the new group. |
A new PeerGroup with the supplied Peers.
Send a raw message without timestamp to the Peers in this Group.
rawArray |
An Int8Array containing the bytes of the OSC message to send. |
Send a message without timestamp to the Peers in this Group.
... args |
An OSC path and one or more OSC args. |
Send an OSC bundle with timestamp to the Peers in this Group.
time |
A time offset from logical now in seconds. |
... args |
One or more Arrays consisting of an OSC path and one or more OSC args. |