Creates a new session.
The name of the app.
The id of the user.
Optionalstate: Record<string, any>The initial state of the session.
OptionalsessionId: stringThe client-provided id of the session. If not provided, a generated ID will be used.
The newly created session instance.
Gets a session.
The name of the app.
The id of the user.
The id of the session.
Optionalconfig: GetSessionConfigOptional config for getting the session.
The session or undefined if not found.
Lists all the sessions.
The name of the app.
The id of the user.
The response containing the list of sessions.
Protectedupdate
Base class for session services. The service provides a set of methods for managing sessions and events.