Class SSEParser
Stateful SSE stream parser.
Feed() with a line and it will parse and return a ServerSentEvent if complete.
Assembly: Glitch9.IO.dll
Syntax
public sealed class SSEParser : IStreamStage<string, string>
Constructors
|
Edit this page
View Source
SSEParser(Dictionary<SSEField, string>, char, string[])
Declaration
public SSEParser(Dictionary<SSEField, string> fieldMap = null, char separator = ':', string[] completionMarkers = null)
Parameters
Methods
|
Edit this page
View Source
IsProtocolDone(string)
Declaration
public bool IsProtocolDone(string dataText)
Parameters
| Type |
Name |
Description |
| string |
dataText |
|
Returns
|
Edit this page
View Source
Process(DeltaToken<string>)
Declaration
public IEnumerable<DeltaToken<string>> Process(DeltaToken<string> lineDelta)
Parameters
Returns
Implements
Extension Methods