Remix Utils - v9.0.0
    Preparing search index...

    Function eventStream

    • A response helper to use Server Sent Events server-side

      Parameters

      • signal: AbortSignal

        The AbortSignal used to close the stream

      • init: InitFunction

        The function that will be called to initialize the stream, here you can subscribe to your events

      • options: ResponseInit = {}
      • Optionalstrategy: QueuingStrategy<any>

      Returns Response

      A Response object that can be returned from a loader