TypedRest for TypeScript - v0.5.0
    Preparing search index...

    Class SseReader

    Reads ServerSentEvents from the body of a Response in the text/event-stream format.

    Index
    • get lastEventId(): string | undefined

      The id of the most recent event that carried an id: field.
      Send this back as a HttpHeader.LastEventId header when reconnecting to let the server resume where it left off.

      Returns string | undefined

    • get reconnectionInterval(): number | undefined

      The reconnection interval in milliseconds most recently requested by the server via a retry: field if any.

      Returns number | undefined