Player APIs (BrightScript & Ja...
...
Networking Objects
roStreamByteArrayEvent
1 min
stream receive objects that implement the ifstreamreceive interface have a setbytearrayeventport(message port as object) method that requests that rostreambytearrayevent events are posted to the message port when bytes are received this is preferable to using setbyteeventport() when bytes are expected to be received in chunks since a single event can contain many bytes with less overhead note that there is no guarantee that contiguous bytes will be sent in a single rostreambytearrayevent ifuserdata getbytearray() as object returns the received bytes that have been set via setbytearrayeventport() it will return invalid if no data has been set