How to deploy laravel websocket on GCP Standard App Engine?

584 views Asked by At

I am using laravel 6 and I want to deploy laravel based websocket server using supervisor on google cloud standard app engine platform.

I am using this package: beyondcode/laravel-websockets

I have setup everything and everything is working fine on local machine! What is the exact procedure to follow to deploy it on GCP?

1

There are 1 answers

5
John Hanley On BEST ANSWER

At this time, WebSockets are not supported by App Engine Standard. There is work being done with Cloud Run support for WebSockets, so this situation might be changing in the future for App Engine Standard.

Cloud Run WebSockets and gRPC bi-directional streaming support

To use WebSockets today, use App Engine Flexible or switch to another service such as Compute Engine.

Creating Persistent Connections with WebSockets

Google Compute Engine WebSocket Support