Questions tagged [socket.io]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
82 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 ...
0
votes
0answers
36 views

How to run socket.io on domain?

How do I run socket.io on a domain because my code works on localhost but not on a domain? I am currently running the server on http://localhost:3000, does this have to be public in some way so that ...
0
votes
0answers
15 views

How do I need to organize the file structure of my VPS so that my “Hello World!” gets printed on example.com?

Noob here. I have a VPS, which has a folder path /var/www/html. If I place a .html there, it gets displayed on example.com. But, I want to use the further-down-pasted nodejs instead. Now the html ...
0
votes
1answer
232 views

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....
0
votes
1answer
454 views

Nginx server blocks and socket.io - CORS

I have been running apps with this server blocks structure for sometime and it has never given me any problems. geo $authentication { default "Authentication required"; `Some ip number` &...
1
vote
0answers
1k views

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 ...
0
votes
0answers
153 views

Running node.js plus socket.io server using Apache

I am trying to run a nodejs server that uses socket.io with Apache. It's working when I use http://ip_address:port, but I need to setup https. This is what my apache configuration looks like <...
0
votes
1answer
141 views

Deploy Laravel and Socket IO into Nginx

I've deployed my Laravel project that using socket io on nginx here is the server spec : NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora"...
0
votes
0answers
47 views

NGINX deny all except websockets for Flask app

I have an Ubuntu server running Flask app under nginx, this is my conf: upstream flaskapp { server 127.0.0.1:5000 fail_timeout=0; } server { listen 80; server_name _; location / { ...
0
votes
0answers
93 views

Dokku : how to have two ports for app and websocket (SocketIO)?

I need to use a second port with Dokku for my app, for websocket (SocketIO). I used this command to add port to app: dokku proxy:ports-add my-app https:8001:8001 http:8001:8001 to add a new port for ...
0
votes
0answers
2k views

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&...
0
votes
0answers
65 views

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 ...
1
vote
0answers
357 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 ...
0
votes
1answer
416 views

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 ...
0
votes
1answer
531 views

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 ...
3
votes
2answers
1k views

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 ...
2
votes
0answers
418 views

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 ...
2
votes
1answer
1k views

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

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 ...
1
vote
1answer
3k views

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 ...
3
votes
0answers
1k views

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

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 ...
0
votes
1answer
2k views

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'))...
0
votes
0answers
322 views

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 ...
0
votes
1answer
127 views

nginx + php5-fpm + mysql too many queries per second?

I have a VPS Debian running a nginx webserver and 2 node.js servers, one with socket.io for suplying data for my website and another one for a bot. The socket server runs a lot of queries but I try to ...