Called when data is ready to be streamed. All streaming logic should be done inside this callback.
The data to be streamed.
void.
Called when a new visitor starts watching the stream.
The number of clients that are currently watching the stream.
void.
Whether immediate streaming is active or not. If immediate mode is not active, streaming will fall back to interval mode. Default value = true.