@@ -39,8 +39,14 @@ need to:
39
39
- Implement custom streaming protocols
40
40
- Process multimedia streams
41
41
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
+
42
48
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
44
50
Domain-Specific Language (DSL), you can define streaming endpoints that are
45
51
transport-agnostic, allowing seamless integration and flexibility in your
46
52
service architecture.
@@ -52,6 +58,7 @@ service architecture.
52
58
- ** Transport Independence:** Defines streaming logic that works across multiple transport protocols without modification.
53
59
- ** Generated Stream Interfaces:** Automatically generates server and client stream interfaces based on your streaming definitions.
54
60
- ** 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.
55
62
56
63
## Example Overview
57
64
@@ -162,3 +169,4 @@ sections will guide you through:
162
169
- [ Bidirectional Streaming] ( ./5-bidirectional )
163
170
- [ Handling Multiple Views] ( ./6-views )
164
171
- [ Stream raw binary data over HTTP] ( ./7-raw-binary )
172
+ - [ Server-Sent Events] ( ./8-sse )
0 commit comments