Search code examples
websocketgoogle-cloud-run

Unable to connect to Websocket from CloudRun


We have a backend developed with Golang using Fiber (gofiber) and used also Fiber's Websocket middleware.

When trying to connect from a Web client in local (ws://...) it works perfectly. When deploying our server to CloudRun, and trying to connect (ws://...) it returns a 400.

Any idea what I am missing?


Solution

  • WebSockets are currently not supported on Cloud Run fully managed. This is a highly requested feature, but it's not yet implemented.

    However, running WebSockets currently works on Cloud Run for Anthos because of its GCE-based native networking layer.