Table of Contents

Method SubscribeToResourceAsync

Namespace
LMKit.Mcp.Client
Assembly
LM-Kit.NET.dll

SubscribeToResourceAsync(string, CancellationToken)

Subscribes to updates for a specific resource. When the resource changes, the ResourceUpdated event will be raised.

public Task SubscribeToResourceAsync(string uri, CancellationToken cancellationToken = default)

Parameters

uri string

The URI of the resource to subscribe to.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

Task