Subscriber (Legacy SDK)
Legacy Web SDK
This page applies to the Legacy Web SDK only. For the Rokt SDK+, see the Web SDK+ Integration Guide.
OverviewDirect link to Overview
Invokes an execution of an observable and registers a handler for notifications it will emit.
MethodsDirect link to Methods
subscribeDirect link to subscribe
▸ subscribe<T>(handler: (value: T) => void): Unsubscriber
Parameters:
| Name | Type | Description |
|---|---|---|
handler | T | Callback invoked whenever the event is emitted |
Returns: Unsubscriber