0

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 Answers1

3

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

John Hanley
  • 74,467
  • 6
  • 95
  • 159
  • so what are the steps to setup laravel websocket on google cloud engine flex env? – Ruchit Parikh Oct 12 '20 at 04:36
  • @RuchitParikh - I provided you with a link. Which part is confusing and needs further clarification? – John Hanley Oct 12 '20 at 04:50
  • I am doing this for the first time! still didn't get much! i did created supervisor file and added firewall rule nginx is not added though is it required and how do i configure it for laravel? my websocket port is 6001! – Ruchit Parikh Oct 13 '20 at 06:26
  • @RuchitParikh - Close this question. Create a new question, show your work, and explain the details of your new problem. – John Hanley Oct 13 '20 at 06:47
  • Ok this is the new problem https://stackoverflow.com/questions/64330279/how-do-i-setup-websocket-on-gcp-flex-environment – Ruchit Parikh Oct 13 '20 at 07:10