We can't get SSE to send from containers on Google Cloud Run. I've tried hosting a container with just a simple SSE example (https://github.com/kljensen/node-sse-example) to see if it was something in our library -- nope.
I see from the server that clients connect (like the initial GET works), but no events get sent from the server. The EventSource
on the client never changes from CONNECTING
to CONNECTED
.
From the Cloud Run docs, it's a little ambiguous if this would be supported (emphasis mine):
Cloud Run (fully managed) currently does not support HTTP streaming. Therefore, inbound requests with protocols like WebSockets and gRPC (streaming RPCs) are not supported.
As an exception, Cloud Run (fully managed) services support unary gRPC for inbound requests.
For outbound requests, both WebSockets and gRPC are supported on Cloud Run (fully managed).
Wouldn't SSE count as outbound requests, or am I misunderstanding?