Questions tagged [socket.io]

22 questions
4
votes
2 answers

socket.io handshake fails on Google https load balancer

We have the following setup for Google HTTPS load balancer. Two Frontends: 1. HTTP traffic to static IP 2. HTTPS traffic to the same static IP(DNS configured to a domain name) Host and Path rules All going to backend One Backend: With HTTP protocol…
3
votes
0 answers

Nginx and Apache are very slow as reverse proxy for NodeJs app with socket.io

I installed Nginx on an Ubuntu server 14.04 as a reverse proxy to redirect traffic coming to a single IP address to multiple NodeJs running on different ports. It also redirects HTTP to HTTPS. Here's the content of nginx.conf: user…
vpx
  • 133
  • 7
2
votes
0 answers

PM2 running but socket.io stops responding at times

I am using a hostgator vps with apache, for backend, I am using node.js and socket.io, it works fine but at times it just stops working. Pm2 is showing it online but it just stops responding. Can anyone tell me how to fix it? Thanks...
2
votes
1 answer

Is it safe to pass my ssl key and cert files to socket.io?

I'm building a web chat using socket.io In order to communicate on port 3000 through https I need to pass my ssl key and cert files. Socket.io is an open source and I don't know how trustworthy it is to allow it to access such secured files as my…
Niv Apo
  • 121
  • 2
2
votes
1 answer

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 a…
Normajean
  • 121
  • 1
  • 5
1
vote
0 answers

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 Socket.IO app. Apache is running on :80 and node on…
1
vote
1 answer

Socket.io with Sails.js/Node.js and NGINX on SSL: bad gateway

I just started venturing in NGINX and SSL. Using Ubuntu 16.04. I am running a Sails server on the standard 1337 port and just set up NGINX with SSL (using letsencrypt). Port 80 is redirected to 443 and upstream goes to Sails. I also have a Tomcat…
noderman
  • 131
  • 1
  • 6
1
vote
1 answer

Nginx what is the right configuration for Socket.io?

If I have a node express server running on port 5003 import express from 'express' import { createServer } from 'http' import { Server } from 'socket.io' const app = express() const prod = process.env.NODE_ENV === 'production' const port =…
Álvaro
  • 117
  • 1
  • 7
1
vote
0 answers

Socket.io error "Failed to load resource: net::ERR_CONNECTION_REFUSED" in Azure linux server

When opening this web page I get the following errors in the debug console: localhost:5005/socket.io/?EIO=3&transport=polling&t=NJKuQEf:1 Failed to load resource: net::ERR_CONNECTION_REFUSED index.min.js:129 Error: xhr poll error at u.i.onError…
Innoomnia
  • 11
  • 3
0
votes
0 answers

Why is my Nginx-Socket.io-Express-Setup not working over HTTPS?

Locally it is working perfectly but as soon as I put it behind the Nginx reverse-proxy I get this in the Chrome Developer Console: GET https://127.0.0.1:8443/socket.io/?EIO=3&transport=polling&t=MoHVP61 net::ERR_SSL_PROTOCOL_ERROR Nginx…
leonheess
  • 144
  • 12
0
votes
0 answers

How to distribute socket.io servers globally?

We have a Socket.io service that needs constant communication with Mongodb. We currently have a load balancer server, 16 containers in a server (due to nodejs being single threaded, we split processes by dockers so we can utilize entire server) and…
Ümit Yayla
  • 11
  • 1
  • 4
0
votes
1 answer

Openlitespeed as a WebSocket Proxy

I am building web applications related to the socket. And my application runs well without https, if it has https, it will not connect. And as guidance on nginx must configure additional proxy. But I do not know on openlitespeed configured in any…
gait
  • 101
  • 3
0
votes
1 answer

Nginx + Socket.io + Proxy

After reading several articles, I'm still unable to get my socket.io communication working via a nginx proxy. Below is my nginx configuration: map $http_upgrade $connection_upgrade { default upgrade; '' close; } location ~* \.io { …
0
votes
1 answer

Deployment of node js app listening on two separate ports under nginx

I have a simple node.js app that listens to two ports: on 8001 it sets up a simple webserver by doing var express = require('express'); var gHttpApp = express(); gHttpApp.use(express.static('public')); gHttpApp.listen(8080, function () { …
Neenster
  • 101
  • 1
0
votes
0 answers

Socket.io w/ node.js + nginx +mysql + php5-fpm Memory Leak?

I have a Debian VPS running node.js socket.io server + nginx + mysql +php5-fpm and the socket server seems to freeze with no messages and no errors. I noticed that the memory usage grows over time but can't seem to find the reason. I kept track of…
1
2