SseHandler class

SseHandler handles requests on a user defined path to create two-way communications of JSON encodable data between server and clients.

A server sends messages to a client through an SSE channel, while a client sends message to a server through HTTP POST requests.

Constructors

SseHandler(Uri _uri, {Duration? keepAlive})
_uri is the URL under which the server is listening for incoming bi-directional SSE connections.

Properties

connections → StreamQueue<SseConnection>
no setter
handler → Handler
no setter
hashCode int
The hash code for this object.
no setterinherited
numberOfClients int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shutdown() → void
Immediately close all connections, ignoring any keepAlive periods.
toString() String
A string representation of this object.
inherited

Operators

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