Skip to main content

Module session

Module session 

Source

Structs§

CachedChatRoom
Cached chat half of a share: a temporary Parrot chat. The content script only makes and opens it (open_room); the chat iframe owns the live ChatRoom socket so the host does not double-join presence.
EnsureOptions
The opts argument of ensure_chat_from_web_access.
EnsuredChat
{ room, code } in the TypeScript SDK.
ExtensionWebSession
A paired live session: one WebRoom (live page DOM) + one ChatRoom. Share links carry only the web access code; chat uses ensure + Parrot code.
SessionHooks

Enums§

AccessScope
{ accessCode } | { reference } in the TypeScript SDK: a web room as a guest joined it, or as its host opened it.

Functions§

end_chat_room
Deletes a share’s temporary chat once the host leaves.
ensure_chat_from_web_access
Bind (host) or open the Parrot room paired with a web room. The host binds a room it opened (room is its reference). Always returns a fresh Parrot access code for connect_room(ChatTarget::Code { code }).
ensure_chat_room
Open (or return) this tab’s shared chat, a temporary Parrot chat. Lives until the host leaves the page (end_chat_room): closing the panel keeps it. Does not connect a socket here; call connect_room from the chat UI with code.
invite
join_room
Joins a shared page by its web access code, with the chat paired with it.
open_session
Opens a shared chat and a hosted web room paired with it. Page capture stays with the browser, so the session only carries the rooms.
share_url
Public join URL for a web-room access code (chat joins via ensure, not the URL). origin defaults to https://app.faunakit.com.