nthData

Returns the data transmission at the specified index.

Return

The data at the specified index, or null if index is out of bounds

Example:

val firstData = nthData(0) // First data emitted
val secondData = nthData(1) // Second data emitted

Parameters

index

Zero-based index of the data transmission to retrieve