Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Docs/Articles/WorkingWithSSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Working with Server-Sent Events (SSE) in Casper .NET SDK 3.x

The new Casper Node **2.x** version introduced changes to the SSE protocol. To support these changes, the Casper .NET SDK has been updated to version **3.x**, introducing a new optional parameter `nodeVersion` in the `ServerEventsClient`.

## Creating `ServerEventsClient` for Node v2.x (Default)

When working with the new Casper Node version **2.x**, instantiate the `ServerEventsClient` without specifying the `nodeVersion`. The default value is set to `2`:

```csharp
var sse = new ServerEventsClient(eventIpAddress, localNetPort, nodeVersion: 1); // For versions 1.x

var sse = new ServerEventsClient(eventIpAddress, localNetPort); // The default value is 2
```