• 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 = {}

    Returns Response

    A Response object that can be returned from a loader