Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Улучшена формулировка #219

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/1.getting-started/6.data-fetching.md
Original file line number Diff line number Diff line change
Expand Up @@ -626,13 +626,13 @@ const { data } = await useFetch('/api/superjson', {

## Рецепты

### Потребление SSE (Server Sent Events) через POST-запрос
### Использование SSE (Server Sent Events) через POST-запрос

::tip
Если вы потребляете SSE через GET-запрос, вы можете использовать [`EventSource`](https://developer.mozilla.org/en-US/docs/Web/API/EventSource) или композабл из VueUse [`useEventSource`](https://vueuse.org/core/useEventSource/).
Если вы используете SSE через GET-запрос, вы можете использовать [`EventSource`](https://developer.mozilla.org/en-US/docs/Web/API/EventSource) или композабл из VueUse [`useEventSource`](https://vueuse.org/core/useEventSource/).
::

При потреблении SSE через POST-запрос вам необходимо вручную обработать соединение. Вот как это можно сделать:
При использовании SSE через POST-запрос вам необходимо вручную обработать соединение. Вот как это можно сделать:

```ts
// Выполните POST-запрос к эндпоинту SSE:
Expand Down
Loading