ResearchCave Technology

ResearchCave.Live.Client (1.0.0)

Published 2026-10-12 18:37:56 +03:00 by admin

Installation

dotnet nuget add source --name ResearchCave --username your_username --password your_token https://git.researchcave.com/api/packages/ResearchCave/nuget/index.json
dotnet add package --source ResearchCave --version 1.0.0 ResearchCave.Live.Client

About this package

Typed mobile and service client for ResearchCave Live streams, gifts, and connection grants.

ResearchCave.Live.Client

Typed .NET client for discovering current ResearchCave live streams and obtaining the LiveKit connection grant used by mobile and service applications.

builder.Services.AddResearchCaveLiveClient(builder.Configuration, options =>
{
    // Mobile apps normally use the public HTTPS address. Internal services can
    // use the service-discovery value from Services:Live:BaseUrl instead.
    options.BaseUrl = "https://live.researchcave.com";
    options.AccessTokenProvider = cancellationToken => tokenStore.GetAccessTokenAsync(cancellationToken);
});
var firstPage = await liveClient.GetCurrentStreamsAsync(page: 1, pageSize: 20, cancellationToken);
var connection = await liveClient.GetConnectionAsync(firstPage.Items[0].Id, cancellationToken);
var stats = await liveClient.GetBroadcasterStatsAsync(broadcasterUserId, cancellationToken);

The current-stream endpoint is newest-first and only returns sessions whose status is Live. Page sizes from 1 through 100 are supported. GetConnectionAsync and all session mutations require a ResearchCave Identity access token.

Dependencies

ID Version Target Framework
Microsoft.Extensions.Http 10.0.10 net10.0
Microsoft.Extensions.Options.ConfigurationExtensions 10.0.10 net10.0
ResearchCave.Live.Common 1.0.0 net10.0
Details
NuGet
2026-10-12 18:37:56 +03:00
1
ResearchCave.Live.Client
20 KiB
Assets (2)
Versions (3) View all
1.0.2 2026-10-12
1.0.1 2026-10-12
1.0.0 2026-10-12