All Questions
19
questions
0
votes
0
answers
2k
views
Different port forwarding for https and wss (Websocket) using firewalld
Currently I setup port forwarding for a nodejs server such that all http requests (using tcp protocol) get redirected from port 80 to 3000, and all https requests (using tcp) get redirected from port ...
0
votes
0
answers
916
views
Nginx: Websocket on port 80 is not working
I have a simple NodeJs Websocket application running, the code for it is
// Importing the required modules
const WebSocketServer = require('ws');
// Creating a new websocket server
const wss = new ...
2
votes
1
answer
8k
views
How to fix ws and socket.io memory leak?
I have read that there is a memory leak occurring in both node.js websocket modules ws and socket.io. It has existed for years and am wondering how to fix it.
It is mentioned in the following, to name ...
1
vote
1
answer
525
views
WSS Connectivity issue on production
I am using Angular8 as frontend and Nodejs as backend
I have Configured WSS on production ,but connection with client not working properly, In one page connection is working but in another page ...
0
votes
0
answers
1k
views
SSL Error: How to use Nginx with Node.js App using Angular and websocket
I am running into an SSL error when setting up Nginx as a reverse proxy for a Node.js app. This app uses Angular to serve dynamic content and for WebSocket, we use ws. WS working properly but when ...
0
votes
0
answers
561
views
Configure Apache Web Server (shared hosting) to provide simultaneous Web and Websocket Access
I'm trying since some days to find a way to configure simultaneous websocket and web server connections with one same Apache Web Server I have on a shared hosting basis. Now, before giving that up and ...
1
vote
0
answers
771
views
Socket.io proxy through Apache and its performance
I am trying to setup a server for a Socket.IO game, but we will also have a little landing page in php served through Apache.
I managed to make the server work by doing a proxy from Apache to the ...
2
votes
0
answers
1k
views
Error 200 during WebSocket handshake: Aws load balancer + ec2 websocket
I'm using load balancer in front of an aws ec2 instance(I will have more in future). In this ec2, I have a website being served by nginx on port 80, a nodejs app listening on 8080 and the websocket on ...
1
vote
0
answers
387
views
Azure App Service Deployment not closing Node.js WebSockets connection
Background
I'm having trouble with an Azure App Service Deployment. I'm using VSTS to do the deployment using the Azure App service Deploy feature. I'm deploying a Docker container to a Linux App ...
3
votes
2
answers
2k
views
nginx as proxy for WebSocket: inspect and block certain requests
I ran NodeJS as a kind of Webapplication Server serving an AngularJS frontend. They communicate solely over WebSockets, using the SailsJS implementation of Socket.IO. Between frontend (client) and the ...
0
votes
1
answer
419
views
Unable to init NodeJS-based WebSocket Server as Service on Windows Server 2012
A basic node.js Implementation of a websocket server runs fine as when started via the command line or the scheduled task manager.
However, after being installed as a service using nssm, it refuses ...
4
votes
1
answer
4k
views
Unable to get websockets to work through apache HTTPS proxy (302 error)
I'm unable to make websockets work on a node backend using an apache proxy through HTTPS to connect to the node instance. Websockets are working properly if no (apache) http(s) proxy is used.
My ...
1
vote
1
answer
1k
views
Nginx doesn't start Passenger/Nodejs
I cannot get Passenger to start my Nodejs (iojs) application on restarting nginx. I've followed the tutorials and installed the prerequisites:
$ nginx -V
nginx version: nginx/1.8.0
configure ...
8
votes
1
answer
11k
views
Nginx WebSocket reverse proxy keeps return 200 instead of 101
I'm currently trying to have a hack.chat on my personal server working.
Long story short, it consists of two servers. The first is a simple httpd server serving javascript and CSS. The second one, ...
0
votes
1
answer
220
views
Keep connections of closed instances behind a load balancer
I'm looking for a system to create a live sockets application through sockets.io and that can be balanced without problem.
There are tons of solutions to balance the load between multiple socket ...
1
vote
0
answers
437
views
Scaling AngularJS + NodeJS app on Linode
I have developed an application using AngularJS + NodeJS (together with MariaDB, Redis and Socket.io for realtime notifications) and I have deployed it on a single Linode node. Now I would like to ...
2
votes
0
answers
2k
views
Sticky sessions with Apache load balancer for Socket.io 1.0
I've been messing around with Apache as a load balancer for my Socket.io server. I went through the following topic and now everything seems to be fine.
Configuring Apache 2.4 mod_proxy_wstunnel for ...
6
votes
2
answers
12k
views
Proxying websocket traffic from nginx 1.3.13 to socket.io (without SSL)
As of 2 days ago, nginx started to support websocket connections, therefore I was trying to get my nginx-nodejs-socket.io application to work without HAproxy ect (not much luck though).
What I want ...
2
votes
2
answers
1k
views
WebSocket Connection vs. Repeated GETs
I am prototyping an application using nodejs. But this question refers to hypothetical large scale roll out. What is more demanding on a server and/or bandwidth: WebSocket stay alive connections or ...