Skip to content

Commit 60f697b

Browse files
committed
Add SSE documentation
1 parent f3e2110 commit 60f697b

File tree

2 files changed

+521
-1
lines changed

2 files changed

+521
-1
lines changed

content/en/docs/3-tutorials/4-streaming/1-introduction.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,14 @@ need to:
3939
- Implement custom streaming protocols
4040
- Process multimedia streams
4141

42+
Using `ServerSentEvents` when you need to:
43+
44+
- Implement server-to-client streaming over HTTP
45+
- Support browser-based clients with native EventSource API
46+
- Handle real-time notifications and updates
47+
4248
Goa supports unidirectional and bidirectional streaming over different transport
43-
protocols, including HTTP (using WebSockets) and gRPC. By leveraging Goa's
49+
protocols, including HTTP (using WebSockets and SSE) and gRPC. By leveraging Goa's
4450
Domain-Specific Language (DSL), you can define streaming endpoints that are
4551
transport-agnostic, allowing seamless integration and flexibility in your
4652
service architecture.
@@ -52,6 +58,7 @@ service architecture.
5258
- **Transport Independence:** Defines streaming logic that works across multiple transport protocols without modification.
5359
- **Generated Stream Interfaces:** Automatically generates server and client stream interfaces based on your streaming definitions.
5460
- **Custom Views:** Supports multiple views for streamed results, providing flexibility in how data is presented to clients.
61+
- **Multiple Protocols:** Supports WebSocket, Server-Sent Events (SSE), and gRPC for streaming.
5562

5663
## Example Overview
5764

@@ -162,3 +169,4 @@ sections will guide you through:
162169
- [Bidirectional Streaming](./5-bidirectional)
163170
- [Handling Multiple Views](./6-views)
164171
- [Stream raw binary data over HTTP](./7-raw-binary)
172+
- [Server-Sent Events](./8-sse)

0 commit comments

Comments
 (0)