LiveKit C++ Client SDK v1.4.0
Real-time audio/video/data SDK for C++
Loading...
Searching...
No Matches
livekit::TokenSourceResponse Struct Reference

Credentials produced by a token source and consumed by Room::connect. More...

#include <token_source.h>

Public Attributes

std::string server_url
 WebSocket URL of the LiveKit server. Use this to establish the connection.
 
std::string participant_token
 JWT token containing participant permissions and metadata. Required for authentication.
 
std::optional< std::string > participant_name
 Display name for the participant in the room. May be unset if not specified.
 
std::optional< std::string > room_name
 Name of the room the participant will join. May be unset if not specified.
 

Detailed Description

Credentials produced by a token source and consumed by Room::connect.

This is an output type: it is what a TokenSourceFixed or TokenSourceConfigurable returns from fetch. Applications typically read it rather than construct it. For static credentials, prefer LiteralTokenSource::create, which takes the server URL and token directly instead of requiring you to populate this struct.

Mirrors the livekit.TokenSourceResponse wire shape for connection credentials, while also preserving optional response metadata exposed by other LiveKit client SDKs.


The documentation for this struct was generated from the following file: