See tutorials/sse/10-Server-Sent-Events.yaml.
Example Configuration
api:
port: 2000
path:
uri: /stream
flow:
- sseDemoStream:
totalEvents: 10
api:
port: 2000
path:
uri: /stream
flow:
- sseDemoStream:
totalEvents: 10
Syntax
sseDemoStream:
intervalSeconds: <int>
totalEvents: <int>sseDemoStream: intervalSeconds: <int> totalEvents: <int>
Attributes
| Name | Required | Default | Description | Examples |
|---|---|---|---|---|
| intervalSeconds | false | 1 | Seconds to wait between events. | - |
| totalEvents | false | 3600 | Total number of events to send before the stream ends. | - |