setMeta

View as Markdown

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

NameTypeDescription
metaRecord``<string, unknown>The metadata object to assign to the RoomSession.

Returns

Promise<void>

Example

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