By hirengm
Hi, We have hosted www.breety.com on your server and it is working fine. But right now we are trying to use nodejs (socket.io) over ssl on nginx server on port 7024.
We have tested on local environment using nginx server and socket,and its working fine.But on live environment we are facing errors as given below:
GET https://www.breety.com:7024/socket.io/?EIO=3&transport=polling&t=LkVPrSN net::ERR_TIMED_OUT
GET https://www.breety.com:7024/socket.io/?EIO=3&transport=polling&t=LkVPrSN net::ERR_CONNECTION_REFUSED
please guide us how to configure socket.io over ssl using nginx.?
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!
Hi @hirengm
This is the community forum (meaning user-to-user support).
Can you post your Nginx configuration of the server blocks? The problem most like is here - or that development environment most likely didn’t have https.
Hi there - If you are trying to keep open a persistent connection have you tried using a product like https://www.pubnub.com/docs/nodejs-javascript/pubnub-javascript-sdk which uses standard SSL port 443 and doesn’t require you to open any additional ports. (full discloser I work for PubNub). Or take a look at this open source package that lets you switch between realtime providers http://rltmjs.com/
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.