By ymeskini
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!
Accepted Answer
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:
https://docs.digitalocean.com/developer-center/deploy-an-app-using-websockets-to-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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.