ADK for TypeScript: API Reference
    Preparing search index...

    Class InMemorySessionService

    An in-memory implementation of the session service.

    Every map below is keyed by untrusted input — appName, userId, sessionId and state keys all arrive straight off the request path or body on a dev server — so each is created with Object.create(null). On an ordinary {} literal a key of __proto__ resolves to the inherited __proto__ accessor instead of creating an own property, so map[appName][userId] = ... writes onto Object.prototype and pollutes every object in the process. A null-prototype map has no such accessor, so those keys become ordinary own properties.

    Hierarchy (View Summary)

    Constructors

    Methods