3v.EvtSource 2.0.0

Server-Sent Events (SSE) client implementation for .net core and .net standard

Install-Package 3v.EvtSource -Version 2.0.0
dotnet add package 3v.EvtSource --version 2.0.0
<PackageReference Include="3v.EvtSource" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add 3v.EvtSource --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: 3v.EvtSource, 2.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install 3v.EvtSource as a Cake Addin
#addin nuget:?package=3v.EvtSource&version=2.0.0

// Install 3v.EvtSource as a Cake Tool
#tool nuget:?package=3v.EvtSource&version=2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

EvtSource

A .net core client library for server-sent events.

Available from nuget as 3v.EvtSource.

Usage Example

var evt = new EventSourceReader(new Uri("https://example.com/some/url/to/SSE")).Start();
evt.MessageReceived += (object sender, EventSourceMessageEventArgs) => Console.WriteLine($"{e.Event} : {e.Message}");
evt.Disconnected += async (object sender, DisconnectEventArgs e) => {
    Console.WriteLine($"Retry: {e.ReconnectDelay} - Error: {e.Message}");
    await Task.Delay(e.ReconnectDelay);
    evt.Start(); // Reconnect to the same URL
};

EvtSource

A .net core client library for server-sent events.

Available from nuget as 3v.EvtSource.

Usage Example

var evt = new EventSourceReader(new Uri("https://example.com/some/url/to/SSE")).Start();
evt.MessageReceived += (object sender, EventSourceMessageEventArgs) => Console.WriteLine($"{e.Event} : {e.Message}");
evt.Disconnected += async (object sender, DisconnectEventArgs e) => {
    Console.WriteLine($"Retry: {e.ReconnectDelay} - Error: {e.Message}");
    await Task.Delay(e.ReconnectDelay);
    evt.Start(); // Reconnect to the same URL
};

NuGet packages (8)

Showing the top 5 NuGet packages that depend on 3v.EvtSource:

Package Downloads
Vereniging-COIN.Sdk.Common
Package Description
Vereniging-COIN.Sdk.BS
Package Description
Vereniging-COIN.Sdk.NP
Package Description
Firebase.Net
Package Description
IEXCloudClient.NetCore
A client for IEXCloud written in .NET Core

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.0 12,287 5/2/2019
1.1.1 419 3/29/2019
1.1.0 373 3/29/2019
1.0.5 712 10/4/2018
1.0.4 1,592 9/13/2017
1.0.3 978 8/31/2017
1.0.2 736 8/29/2017
1.0.1 733 8/22/2017
1.0.0 876 8/21/2017