• Subscribe to events with initial state, ensuring no events are missed

    Type Parameters

    • T = ApiCallback<string>

    Parameters

    • eventType: string

      The event type to subscribe to

    • callback: EventCallback<T>

      Callback for state updates

    • options: StateAwareOptions<T>

      Options for initial state fetching

    Returns (() => void)

    Unsubscribe function

      • (): void
      • Returns void