Skip to main content

getReceivedPackets

Summary

Reassemble buffered chunks and return a map of clientId = complete packets. Partial packets are retained internally for the next call so callers may repeatedly poll this method to consume newly arrived data.

Signature

Parameters

No parameters.

Returns

Type:Map<number, Uint8Array[]> Reassemble buffered chunks and return a map of clientId = complete packets. Partial packets are retained internally for the next call so callers may repeatedly poll this method to consume newly arrived data.