Stratal API Reference
    Preparing search index...

    Class TestSseRequest

    TestSseRequest

    Builder for SSE connection requests. Follows the TestWsRequest pattern.

    const sse = await module.sse('/streaming/sse').connect()
    await sse.assertEvent({ event: 'message', data: 'hello' })
    await sse.waitForEnd()
    const sse = await module.sse('/streaming/sse').actingAs({ id: user.id }).connect()
    
    Index

    Constructors

    Methods

    • Set the locale for this SSE connection. If strategy is not provided, resolves from the module's I18n configuration.

      Parameters

      • locale: string
      • Optionalstrategy: DetectionStrategy

      Returns this