diff --git a/lib/src/server/sse_handler.dart b/lib/src/server/sse_handler.dart index e764651..0f450bb 100644 --- a/lib/src/server/sse_handler.dart +++ b/lib/src/server/sse_handler.dart @@ -193,6 +193,16 @@ class SseHandler { StreamQueue _connectionsStream; + /// [_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. SseHandler(this._uri, {Duration keepAlive}) : _keepAlive = keepAlive; StreamQueue get connections =>