# streamSSE

**Kind:** Function

**Source:** [`src/helper/streaming/sse.ts`](https://github.com/honojs/hono/blob/main/src/helper/streaming/sse.ts#L73)

**Part of:** [Helper](subsystem-src-helper)

## Signature

```ts
function streamSSE(c: Context, cb: (stream: SSEStreamingApi) => Promise<void>, onError: (e: Error, stream: SSEStreamingApi) => Promise<void>): Response
```

## Parameters

| Name | Type |
|---|---|
| `c` | `Context` |
| `cb` | `(stream: SSEStreamingApi) => Promise<void>` |
| `onError` | `(e: Error, stream: SSEStreamingApi) => Promise<void>` |

**Returns:** `Response`
