Skip to main content

All Questions

Tagged with
0 votes
0 answers
42 views

Setting up Nginx Webhosting with React and socket.io

I'm trying to configure nginx to work with my socket.io websockets. I have an app with a React frontend and a backend that uses Nestjs and Socket.io. The app runs fine on my local machine but now I'm ...
i'mlearningtocode's user avatar
1 vote
0 answers
38 views

Socket.io io.emit (broadcase to all clients) working in local but not working in remote server

server.js require('dotenv').config({ path: '.env/.env' }); var express = require('express'), fileUpload = require('express-fileupload'); app = express(), appPort = ...
Edcel Cabrera Vista's user avatar
1 vote
0 answers
30 views

Socket.io Response Malformed When Using Nginx as a Reverse Proxy

I am experiencing an issue with my Socket.io application when running in a production environment behind an Nginx reverse proxy. In my local environment, everything works perfectly. However, in ...
DoubleBackSlash's user avatar
1 vote
0 answers
21 views

Socket.io slow to reconnect after server restart

When I restart my socket.io process (nodejs behind nginx proxy), the server refuse most of the connections attempt for the first few minutes. When looking at the log, it looks like it accept ...
Owow's user avatar
  • 347
1 vote
1 answer
73 views

Nginx not working Properly with Socket.io as LoadBalancer

I have a working socket.io application with Nodejs using Apache-Kafka. Now I want to scale my socket.io and for that purpose I created multiple instance of my socketservice.js. I created three files ...
Abhishek's user avatar
0 votes
2 answers
912 views

Same site cookie issues on AWS ALB when using socket.io

My application uses Angular for the front end and nodejs rest API to connect to MongoDB. I have my nodejs server application running on a nginx container with its nginx.conf config as: server { ...
TREX_SON's user avatar
0 votes
0 answers
52 views

HTTP works with Nginx and Node.js but HTTPS dosent

nginx config server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name www.my.domain my.domain; ssl_certificate /etc/nginx/ssl/cert.pem; ...
MadDemon's user avatar
0 votes
1 answer
167 views

Socket.IO authentication issue with Nginx proxy in deployed application

I'm currently facing an authentication issue while deploying my Socket.IO application with Nginx as a proxy. Locally, everything is working fine, and I can authenticate socket connections using the ...
Prathyu Prasad's user avatar
0 votes
1 answer
217 views

Socket.IO and NodeJs behing Nginx ( HTTPS ). xhr polling requests canceled

If my explanation is bad, please write a comment ! I encounter a strange problem, i have a socket.io Server using NodeJs Express 5.0. I have socket.io clients that connects from Windows/MacOS/Linux ...
Andrei Tricolici's user avatar
1 vote
0 answers
574 views

WebSocket is closed before the connection is established with angular node js and Nginx proxy

I am trying to build a socket.io app with angular and nodeJs. While the app works perfectly fine in local, It fails to connect if we deploy it in Kubernaties cluster with Nginx proxy.Throws WebSocket ...
monk_7's user avatar
  • 37
0 votes
1 answer
775 views

server error while trying to connect to socket.io server via nginx proxy_pass

I'm a newbie in webdev and I'm trying to deploy an express app to nginx with proxy_pass! The app works just fine on my machine but I get a connection error when trying from nginx. Here is my nginx ...
Ruben Stanciu's user avatar
1 vote
1 answer
1k views

Socket.io client stuck at 101 and keeps polling using xhr

This problem is driving me crazy. I have this machine using express and socket.io over ssl (using nginx proxy pass) const { v4: uuidV4 } = require('uuid') const express = require('express') const app =...
AntonioCorrenti's user avatar
0 votes
1 answer
87 views

Error connecting to socket.io server, changed code from websocket to socket.io

I'm currently using websocket library on both nodejs backend and JS client. I'm trying to change to socket.io, I managed to write the code for both sides however I'm unable to connect to the server ...
Berkenus's user avatar
2 votes
1 answer
1k views

Socket.io on docker-compose stack (Node + Angular)

I'm trying to integrate Socket.io into a docker-compose stack with a frontend (Angular + Nginx) and a backend (Node.JS Express). The goal of this instance is to broadcast in real-time messages between ...
DamDam's user avatar
  • 179
0 votes
1 answer
1k views

Socket.io not connecting via https

I'm running a socket server on port 3000 and is proxied by Nginx. My Nginx's config: server { listen 443 ssl; server_name example.domain.com www.example.domain.com; ssl_protocols TLSv1 ...
Tan Nguyen's user avatar

15 30 50 per page
1
2 3 4 5
18