Build the stream data instance, it only connects to the server when tracks are set.
Private
_tracksPrivate
_urlPrivate
_wsStart a log
a Log object with the levels of log to call
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
Private
_sendClose the Stream Data connection
Optional
error: WebSocketReliableErrorEvent subscription
Name of event without the on
prefix (ex: log
to onLog
event declared)
Subscriber Function
Optional
options: { Optional
signal?: 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
Optional
options: { Optional
signal?: AbortSignalCall when the stream is closed
Optional
error: WebSocketReliableErrorerror description on an improper closure
Generated using TypeDoc
WSStreamData is the WebSocket implementation of IStreamData
Example