getSession

abstract suspend fun getSession(key: SessionKey, config: GetSessionConfig? = null): Session?

Retrieves a specific session, optionally filtering the events included.

Return

The Session if found, otherwise null.

Parameters

key

The composite identifier of the session to retrieve. SessionKey.id must not be null.

config

Optional configuration to filter the events returned within the session.