Skip to content

API reference > @kontsedal/olas-realtime > RealtimeSubscription

RealtimeSubscription type ​

A handle returned by RealtimeService.subscribe(...). Matches the shape used by most WebSocket / SSE / Pusher / Ably / Supabase clients in the wild. SPEC §16.5.

Signature:

typescript
export type RealtimeSubscription = {
  unsubscribe(): void;
};

Released under the MIT License.