I have a Node.js app deployed through App Platform using a custom Dockerfile and I am using https://www.npmjs.com/package/ws as a standalone server to support websocket. Locally it’s working fine with a system of ping-pong system to keep the connective alive. In production, it’s also working fine the connection between the client and the server is kept but when the server is not able to send any message after 5 minutes.
Is there any limitations I am not aware of? I tried to look for Cloudflare possible issues, it may be there but I am not sure.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hey!
This is quite interesting, what I usually do is to follow the steps here on how to deploy an app using Websockets to the DigitalOcean App Platform:
It seems like your GitHub repository is not public, if you make it public I will be happy to try and deploy the project and further look into what might be going on!
Best,
Bobby