const config: ClientConfig = new ClientConfig(ConfigRegion.EU);
config.apiUrl = 'https://api.example.com';
config.websocketUrl = 'https://ws.example.com';
config.rtcStatsTelemetry = true;
config.autoReconnectMedia = false;
client.setConfig(config);
// or
client.setConfig({
apiUrl: 'https://api.example.com',
websocketUrl: 'https://ws.example.com'
});
client.setConfig({
region: 'EU'
});
Represents the configuration object for the client.
The
ClientConfig
class provides a convenient way to configure the client by specifying various properties. These properties control different aspects of the client's behavior, such as API URLs, media reoffer, and WebSocket settings.