The function first checks if the array of streamIDs is not empty as well as
the protocol set up is UDP. After the header and packet are defined, the
message is send at the appropriate port number and target IP.
Parameters:
Name | Type | Description |
---|---|---|
streamID |
String | Allows a user to select streams to Subscribe to. If StreamID is not given, all streams are sent |
data |
String | Refers to the data to be sent. |
_header |
object | Is a JSON object that will be placed in the header in general these could be arbitrary information, however, several tags will be decoded - stamp: the server will fill in the server time stamp - limit: array of receiver ids, the server will send the packet only to these id's |
- Source: