Something went wrong. Try again.
.NET ATProtocol Library - Built for Source Gen
Something went wrong. Try again.
FirehoseTest #
A sample console application that connects to the ATProtocol firehose (relay) and streams real-time events.
Prerequisites #
- .NET 10 SDK
Running #
# Run the sample
dotnet run --project samples/FirehoseTest
# Resume from a specific sequence number
dotnet run --project samples/FirehoseTest -- --cursor 12345
Press Ctrl+C to stop the stream.
What it demonstrates #
- Creating a public (unauthenticated) client pointed at the Bluesky relay (
bsky.network) - Subscribing to
com.atproto.sync.subscribeReposvia the generatedComAtprotoSyncSubscribeReposAsyncextension method - Pattern matching on the discriminated union message types (
Commit,Identity,Account,Sync,Info) - Using cursor-based resumption to pick up from a specific sequence number
- Graceful cancellation with
CancellationToken