Establishes a new connection and stores connection metadata
The Magek configuration object
Unique identifier for the connection
Metadata associated with the connection
A promise that resolves when the connection is established
Retrieves connection data for a specific connection
The Magek configuration object
Unique identifier for the connection
A promise that resolves to the connection data, or undefined if not found
Removes a connection and all associated data
The Magek configuration object
Unique identifier for the connection
A promise that resolves when the connection is removed
Stores subscription information for a connection
The Magek configuration object
Unique identifier for the connection
Unique identifier for the subscription
Metadata associated with the subscription
A promise that resolves when the subscription is stored
Retrieves subscription data for a specific subscription
The Magek configuration object
Unique identifier for the subscription
A promise that resolves to the subscription data, or undefined if not found
Removes a subscription
The Magek configuration object
Unique identifier for the connection
Unique identifier for the subscription
A promise that resolves when the subscription is removed
Retrieves all subscriptions for a specific connection
The Magek configuration object
Unique identifier for the connection
A promise that resolves to an array of subscription data
Removes all subscriptions associated with a connection
The Magek configuration object
Unique identifier for the connection
A promise that resolves when all subscriptions are removed
Retrieves subscriptions filtered by read model class name This method supports querying subscriptions by the read model type they are listening to
The Magek configuration object
The name of the read model class to filter subscriptions by
A promise that resolves to an array of subscription envelopes matching the class name
OptionalhealthHealth check methods for the session store
Get detailed health information about the session store
Interface for session store adapters that handle connection and subscription management for real-time features like GraphQL subscriptions and WebSocket connections.