*** id: 399a445a-12a2-4cb5-9283-0f9aab4f5f4a title: setMeta slug: /node/reference/video/room-session/set-meta description: setMeta method for the RoomSession class. max-toc-depth: 3 ---------------- ### setMeta * **setMeta**(`meta`): `Promise` 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 | Name | Type | Description | | :----- | :-------------------------- | :------------------------------------------------ | | `meta` | `Record``` | The metadata object to assign to the RoomSession. | #### Returns `Promise` #### Example ```js await roomSession.setMeta({ foo: "bar" }); ```