True when connection is closed, in other words when onClose event is fired
The list of tracks currently receiving
Set the data tracks to receive
URL of connction
Close the Stream Data connection
Event subscription
Name of event without the on prefix (ex: log to onLog event declared)
Subscriber Function
Optionaloptions: { signal?: AbortSignal }Optionalsignal?: AbortSignalOptional AbortSignal to stop this or multiple subscriptions in same time
Event subscription only one time, once time fired it's automatically unsubscribe
Name of event without the on prefix (ex: log to onLog event declared)
Subscriber Function
Optionaloptions: { signal?: AbortSignal }Optionalsignal?: AbortSignalOptional AbortSignal to stop this or multiple subscriptions in same time
Call when the stream is closed
Optionalerror: WebSocketReliableErrorerror description on an improper closure
Call on every data reception
timestamp of the data
data track
JS data object received
IStreamData is an interface to get JSON data from a stream, parse it and fire the onData callback It can receive data from multiple tracks.