You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/openapi-ts/clients/angular.md
+62Lines changed: 62 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,6 +204,68 @@ This section is under construction. We appreciate your patience.
204
204
This section is under construction. We appreciate your patience.
205
205
:::
206
206
207
+
## Server-Sent Events
208
+
209
+
When your OpenAPI spec defines endpoints with `text/event-stream` responses, the SDK generates SSE-enabled functions that return an async stream instead of a regular response.
sseMaxRetryDelay:30000, // max retry delay cap (default: 30000ms)
262
+
});
263
+
```
264
+
265
+
::: warning
266
+
Angular `HttpClient` interceptors do not apply to SSE connections. The SSE client uses the native Fetch API under the hood.
267
+
:::
268
+
207
269
## Build URL
208
270
209
271
If you need to access the compiled URL, you can use the `buildUrl()` method. It's loosely typed by default to accept almost any value; in practice, you will want to pass a type hint.
Copy file name to clipboardExpand all lines: docs/openapi-ts/clients/angular/v19.md
+62Lines changed: 62 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,6 +204,68 @@ This section is under construction. We appreciate your patience.
204
204
This section is under construction. We appreciate your patience.
205
205
:::
206
206
207
+
## Server-Sent Events
208
+
209
+
When your OpenAPI spec defines endpoints with `text/event-stream` responses, the SDK generates SSE-enabled functions that return an async stream instead of a regular response.
sseMaxRetryDelay:30000, // max retry delay cap (default: 30000ms)
262
+
});
263
+
```
264
+
265
+
::: warning
266
+
Angular `HttpClient` interceptors do not apply to SSE connections. The SSE client uses the native Fetch API under the hood.
267
+
:::
268
+
207
269
## Build URL
208
270
209
271
If you need to access the compiled URL, you can use the `buildUrl()` method. It's loosely typed by default to accept almost any value; in practice, you will want to pass a type hint.
When your OpenAPI spec defines endpoints with `text/event-stream` responses, the SDK generates SSE-enabled functions that return an async stream instead of a regular response.
sseMaxRetryDelay:30000, // max retry delay cap (default: 30000ms)
242
+
});
243
+
```
244
+
245
+
::: warning
246
+
Axios interceptors registered through `client.instance.interceptors` do not apply to SSE connections. The SSE client uses the native Fetch API under the hood.
247
+
:::
248
+
187
249
## Build URL
188
250
189
251
If you need to access the compiled URL, you can use the `buildUrl()` method. It's loosely typed by default to accept almost any value; in practice, you will want to pass a type hint.
When your OpenAPI spec defines endpoints with `text/event-stream` responses, the SDK generates SSE-enabled functions that return an async stream instead of a regular response.
sseMaxRetryDelay:30000, // max retry delay cap (default: 30000ms)
320
+
});
321
+
```
322
+
323
+
::: tip
324
+
Request interceptors registered through `client.interceptors.request` apply to SSE connections, including on each reconnect attempt.
325
+
:::
326
+
265
327
## Build URL
266
328
267
329
If you need to access the compiled URL, you can use the `buildUrl()` method. It's loosely typed by default to accept almost any value; in practice, you will want to pass a type hint.
When your OpenAPI spec defines endpoints with `text/event-stream` responses, the SDK generates SSE-enabled functions that return an async stream instead of a regular response.
sseMaxRetryDelay:30000, // max retry delay cap (default: 30000ms)
318
+
});
319
+
```
320
+
321
+
::: tip
322
+
Request interceptors registered through `client.interceptors.request` apply to SSE connections, including on each reconnect attempt.
323
+
:::
324
+
263
325
## Build URL
264
326
265
327
If you need to access the compiled URL, you can use the `buildUrl()` method. It's loosely typed by default to accept almost any value; in practice, you will want to pass a type hint.
0 commit comments