Seuraa.Edge
0.1.1
dotnet add package Seuraa.Edge --version 0.1.1
NuGet\Install-Package Seuraa.Edge -Version 0.1.1
<PackageReference Include="Seuraa.Edge" Version="0.1.1" />
<PackageVersion Include="Seuraa.Edge" Version="0.1.1" />
<PackageReference Include="Seuraa.Edge" />
paket add Seuraa.Edge --version 0.1.1
#r "nuget: Seuraa.Edge, 0.1.1"
#:package Seuraa.Edge@0.1.1
#addin nuget:?package=Seuraa.Edge&version=0.1.1
#tool nuget:?package=Seuraa.Edge&version=0.1.1
Seuraa Edge .NET Client
The .NET 10 client connects .NET applications to Seuraa Edge using one shared WebSocket for all active channels.
Install
dotnet add package Seuraa.Edge
Create A Client
using Seuraa.Edge;
await using var edge = new Client(new ClientOptions
{
AppKey = "app-key",
Auth = new Uri("https://api.example.com/seuraa/token"),
});
Subscribe
var channel = edge.Channel("private:user-123");
using var subscription = channel.Subscribe<Notification>(
"notification.created",
notification => Console.WriteLine(notification.Data.Title));
Disposing the subscription removes only that handler. Call channel.UnsubscribeAsync() to leave the channel.
Publish
var result = await channel.PublishAsync(
"typing.started",
new { documentId = "document-123" });
The client reconnects with jittered exponential backoff and resumes each active channel from its latest event cursor.
Trusted Backend
Use EdgeServerClient only in trusted backend code:
using var edge = new EdgeServerClient(new EdgeServerClientOptions
{
AppKey = configuration["Seuraa:AppKey"]!,
AppSecret = configuration["Seuraa:AppSecret"]!,
});
var session = edge.Auth.SignIn(new EdgeSignInRequest
{
Channel = $"private:{user.Id}",
Permissions = ["subscribe"],
UserId = user.Id,
});
Trusted backends can also publish, query presence, and revoke channel tokens through edge.Channels and edge.Auth.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Google.Protobuf (>= 3.33.2)
- System.IdentityModel.Tokens.Jwt (>= 8.19.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.