SseHandler constructor
_uri is the URL under which the server is listening for
incoming bi-directional SSE connections.
If keepAlive is supplied, connections will remain active for this
period after a disconnect and can be reconnected transparently. If there
is no reconnect within that period, the connection will be closed
normally.
If keepAlive is not supplied, connections will be closed immediately
after a disconnect.
If ignoreDisconnect is supplied, it will be passed on to the
SseConnection. The SseHandler will also use it as a signal to reuse
open SSE connections that are not in a keep alive period.
Implementation
SseHandler(this._uri, {Duration? keepAlive, Duration? ignoreDisconnect})
: _keepAlive = keepAlive,
_ignoreDisconnect = ignoreDisconnect;