SseHandler class Null safety

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>
read-only
handler Handler
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
numberOfClients int
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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