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.

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
};

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.0 2,586 5/2/2019
1.1.1 159 3/29/2019
1.1.0 114 3/29/2019
1.0.5 337 10/4/2018
1.0.4 1,019 9/13/2017
1.0.3 633 8/31/2017
1.0.2 414 8/29/2017
1.0.1 407 8/22/2017
1.0.0 510 8/21/2017