setMeta

View as MarkdownOpen in Claude

setMeta

  • setMeta(meta): Promise<void>

Assigns custom metadata to the RoomSession. You can use this to store metadata whose meaning is entirely defined by your application.

Note that calling this method overwrites any metadata that had been previously set on this RoomSession.

Parameters

meta
Record<string, unknown toc={true}>

The medatada object to assign to the RoomSession.

Returns

Promise<void>

Permissions

  • room.set_meta

You need to specify the permissions when creating the Video Room Token on the server side.

Example

1await roomSession.setMeta({ foo: "bar" });