> ## Documentation Index
> Fetch the complete documentation index at: https://docs.archetypeai.app/llms.txt
> Use this file to discover all available pages before exploring further.

# SSE Writer

Developers can write events to an outgoing SSE stream from a Lens by connecting an *SSE Writer* data connector to the [output data stream](/core-concepts/introduction/introduction#lens-data-streams) of a Lens.

The SSE Writer writes events to an outgoing Server-Sent Events (SSE) stream that can be consumed by any HTTP client that supports event streams, making it ideal for web dashboards, monitoring applications, and real-time analytics.

Like all data stream connectors, the SSE writer can be identified and configured via the following *stream type* and *stream config*:

```
stream_type: sse_writer
stream_config:
  {}
```

As the stream\_config is empty, it can be skipped.

This can be passed to Newton as an [event](/core-concepts/streams/events/overview):

```
event:
  type: output_stream.set
  event_data:
    stream_type: server_sent_events_writer
```
