All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
1k 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 ...
VIVEK's user avatar
  • 83
0 votes
0 answers
714 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 ...
Bidyut's user avatar
  • 121
2 votes
1 answer
7k 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 ...
Normajean's user avatar
  • 131
1 vote
1 answer
494 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 ...
Satish Umagol's user avatar
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 ...
user23316's user avatar
0 votes
0 answers
509 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 ...
DevelJoe's user avatar
  • 187
1 vote
0 answers
669 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 ...
Friendly Zeppelin's user avatar
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 ...
Sandro Benevides's user avatar
1 vote
0 answers
361 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 ...
Sawtaytoes's user avatar
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 ...
cis's user avatar
  • 247
0 votes
1 answer
392 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 ...
Jens Habegger's user avatar
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 ...
Digital Leaves's user avatar
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 ...
Maruf's user avatar
  • 159
8 votes
1 answer
10k 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, ...
axellink's user avatar
0 votes
1 answer
192 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 ...
Jorge Fuentes González's user avatar
1 vote
0 answers
432 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 ...
Giorgio's user avatar
  • 19
2 votes
0 answers
1k 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 ...
Peyman's user avatar
  • 21
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 ...
Skeptic's user avatar
  • 191
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 ...
Ross's user avatar
  • 153