Class SSEvent
An occurrence of a server side event delivered via callback method
Inherited Members
Namespace: Casper.Network.SDK.SSE
Assembly: Casper.Network.SDK.dll
Syntax
public class SSEvent
Properties
| Edit this page View SourceEventType
The type of the event.
Declaration
public EventType EventType { get; init; }
Property Value
| Type | Description |
|---|---|
| EventType |
Id
The incremental id number of the event from the node.
Declaration
public int Id { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
Result
JSON object before parsing. Call the Parse<T>() method to get a typed object with the event.
Declaration
public JsonElement Result { get; init; }
Property Value
| Type | Description |
|---|---|
| JsonElement |
Methods
| Edit this page View SourceParse<T>()
Parses the json event and returns a typed object with the data. If T is not the correct type for the event this method throws an exception.
Declaration
public T Parse<T>()
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T | One of BlockAdded, DeployAccepted, DeployExpired, DeployProcessed, Fault, FinalitySignature or Step. |