@urth/metatell-sdk - v0.1.0
    Preparing search index...

    Function getSessionId

    • Get the session id of the current user (self).

      Unlike the persistent account id returned by getId, this id identifies the current room session and is available to guest users. It can change after leaving and re-entering a room.

      Returns string | undefined

      The current session id, or undefined when the metatell host is not ready.

      import { getSessionId } from "@urth/metatell-sdk/user";

      const sessionId = getSessionId();