Skip to content

getSession

getSession<T>(sessionType, sessionId): T

Gets an existing Session instance.

Type parameters

T extends Session

Parameters

sessionType: (sessionId) => T

The class type that extends Session. (E.g. MySession)

sessionId: string

The session id used to uniquely identify the Session instance.

Returns

T

The Session instance.


Generated using typedoc-plugin-markdown and TypeDoc