• 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.

    Example

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

    const sessionId = getSessionId();