OptionalbatchEventEmitter that fires "connected" and "closed" events.
OptionalfallbackMilliseconds to wait after WS disconnect before starting HTTP polling.
Returns current WS connection status.
Polling interval in milliseconds when using HTTP fallback.
OptionalhttpOne-shot HTTP query returning the same data shape as the WS event.
When undefined, HTTP fallback is disabled (WS-only subscription).
OptionalonCalled on HTTP polling errors (silent retry on next interval).
OptionalpollingWhen false, disables HTTP polling fallback (WS-only mode). Default: true.
Start a WS subscription that calls listener on each event.
Returns an unsubscribe function.
When true, uses a shared batch poller instead of per-subscription setInterval.