node-cluster-socket.io icon indicating copy to clipboard operation
node-cluster-socket.io copied to clipboard

Writeup on how to make node.js cluster and socket.io play nice

Results 15 node-cluster-socket.io issues
Sort by recently updated
recently updated
newest added

This code was working perfectly with the same IP address. But if different sockets try to connect with the different IP it's not working.

The `connection.remoteAddress` is always `127.0.0.1` when using `nginx` reverse proxy.

I have CORS issue when use this cluster server behind nginx load balancer. how can I modify its origin so that CORS issue not showing? I send Auhorization header. it...

I'm trying to use sticky-session for socket.io as a load balancer. I use this example from the main page: ``` var express = require('express'), cluster = require('cluster'), net = require('net'),...

Is it possible to use Express.js instead of Net? I guess Express would be the default usecase for most users. Currently i do have 2 servers: Net for Socket.io (like...

> 1 . I have http and ws request > 2 . use cluster, 1master and 3workers > 3 . if i use redis like demo, 1 browser (1 ip)...

Hey @elad, I have a question related to the great example you provided here: Can you explain why we even need a sticky session? I don't understand why having the...

If we use IP Address for hashing, then it might not work in a corporate proxy or users behind a NAT environment as all requests emanating from that environment would...

I am using your solution, but when I tried to run in browser, it is just hanging, and there is no response at all. My versions are: Node: 0.10.x Express:...

Hi elad, I'm using haproxy as a reverse-proxy, I'm getting haproxy ip as client ip at 'connection.remoteAddress'.In my use case clients will connect via haproxy and using node-cluster-socket.io for sticky-session....