SseCodec class

A codec for encoding and decoding SSE events.

This codec converts between raw SSE strings and SseEvent objects.

Inheritance

Constructors

SseCodec()

Properties

decoder → Converter<String, SseEvent>
Returns the decoder that converts raw SSE strings into SseEvent objects.
no setteroverride
encoder → Converter<SseEvent, String>
Returns the encoder that converts SseEvent objects into raw SSE strings.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
inverted → Codec<String, SseEvent>
Inverts this.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(String encoded) → SseEvent
Decodes encoded data.
inherited
encode(SseEvent input) → String
Encodes input.
inherited
fuse<R>(Codec<String, R> other) → Codec<SseEvent, R>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited