webhook_client library

Classes

WebhookListener
Active subscription. Cancel via close.
WebhookListenerError
Errors surfaced by the SSE listener.

Functions

connectWebhookStream({required String apiKey, String baseUrl = 'https://kit.openiap.dev', Duration reconnectDelay = const Duration(seconds: 2), HttpClient? httpClient}) WebhookListener
Open a long-lived listener against the kit SSE stream. The listener auto-reconnects with Last-Event-ID until close is called.
parseWebhookEventData(String raw) WebhookEvent?
Pure parser exported for tests so the SSE-frame → WebhookEvent path can be validated without spinning up a real HTTP listener.