Amazon Node.js WebSocket Server Setup - node.js

Does anybody know how to create and configure AWS so that I can deploy a simple Node.js WebSocket server on it?

Related

Can't connect to nodejs websocket server from client

I have nodejs websocket server hosted on azure.
websocket client was build by react.
websocket is working well on my local.
but after hosted on azure server, I can't connect to there.
can anyone help me to solve this issue.
Thank you in advance.

How to make a secure communication for NodeJs server and React.js as client (static hosting) using EC2 as a middleman for routes/forwarding request?

How do I make a secure communication for NodeJs server and React.js as client using EC2 as a middleman for routes/forwarding request?
I am using Socket.IO. And I want to use EC2 server as a middleman for routing/forwarding all requests from nodejs server to react.js client.
Also including the AWS Certificate.

socket.io on AWS EC2 Instance

I have an express node server running that is a backend for a REST API and a Websockets (for chatting feature) while my client is React.js
When I deploy my server to an AWS EC2 instance with security groups set up, I am able to make http api calls, but my socket.io connection doesn't work. I have tested the server locally on my localhost, which works.
I think this does something with the proxy in the package.json because testing locally when I change the proxy to my EC2 instance public ip while keeping my socket.io connection connected to my localhost it does not work.
I am not getting any "connection refused" errors.
So my question is how does the react.js proxy effect the socket.io connection?

How to configure AWS Elastic Beanstalk for a Node.js WebSocket server?

I'm writing a pure Node.js WebSocket server with:
AWS Elastic Beanstalk
AWS Relational Database Service (RDS) for PostgreSQL
AWS Simple Notification Service (SNS) for Apple Push Notification Service (APNs)
Node.js ws module
Node.js pg module
I also want it to be secure, e.g.:
WSS (WebSockets over SSL/TLS)
DoS attack prevention
I've changed "proxy server" to "none," but which other configurations should I change?

403 Forbidden when trying to access node server on AWS instance, through proxy

I am using Node.js + Socket.io in my application.
Say, my chat application (php) is hosted on server A and node.js is hosted on AWS.
Each client accesses chat application and in the background it registers the client with the node.js application hosted on AWS.
The problem is when I use a proxy server from hidemyass.com and configure my firefox to access the application.
The application is loading but it unable to connect to node server hosted on AWS and I get a 403 Forbidden error.
Is this a problem with AWS security configuration or a node.js settings ? I am unable to figure this at all.
I have tried my best to search for reasons why this would happen, but didn't get any clue. Can it be an AWS configuration issues or Is it to do with Nodejs server settings. Any guess or help is highly appreciated.
Thanks you very much.

Resources