EventSource

The Argo Events resource that listens to an outside source, such as a webhook or a queue, and publishes what arrives as events.

In more detail

Each EventSource names one or more events of a type, for example a webhook entry called push. It turns each input into a CloudEvent and publishes it on the EventBus, where Sensors subscribe.

Example

const es = new EventSource("/api/stream"); es.onmessage = (e) => render(e.data)

Related terms

Taught in

References

Certification courses