DevelopmentTokenSource constructor

DevelopmentTokenSource({
  1. required String id,
})

Initialize with a development token server ID from LiveKit Cloud.

The id is obtained from your LiveKit Cloud project's token server settings.

Implementation

DevelopmentTokenSource({
  required String id,
}) : super(
       url: Uri.parse('https://cloud-api.livekit.io/api/v2/sandbox/connection-details'),
       headers: {
         'X-Sandbox-ID': _sanitizeId(id),
       },
     );