Questions tagged [socket.io-redis]

Adapter to enable broadcasting of events to multiple separate socket.io server nodes.

By running socket.io with the socket.io-redis adapter you can run multiple socket.io instances in different processes or servers that can all broadcast and emit events to and from each other.

If you need to emit events to socket.io instances from a non-socket.io process, you should use socket.io-emitter.

See also

Installing:

$ npm install socket.io
112 questions
0
votes
1 answer

Making realtime datatable updates

I built an app which consumes data from a redis channel(sellers) with socketio and push the data in realtime to the frontend. The dataset could contain up to a thousand rows so I'm thinking about using a datatable to represent the data in a clean…
Rod0n
  • 1,019
  • 2
  • 14
  • 33
0
votes
0 answers

socket.io emit to room will disconnect some clients

I am running a node.js server with socket.io 0.9. (xhr-polling) I tried to simulate 300 clients connected to one big room. I noticed that when I emit one single message to all members in the room, about 40-50 people in the room will be…
mkto
  • 4,584
  • 5
  • 41
  • 65
0
votes
1 answer

Issue with Php-redis - socket.io to emit to specific user

I got an issue with php-redis with socket.io ,in their example here https://github.com/rase-/socket.io-php-emitter im trying to emit to specific user which is set on my socket.io nodejs server , in a varible called: var users = {}; this carible…
DreamDev
  • 11
  • 2
-1
votes
1 answer

NGINX Configs guidance needed for socket.io

The codes below are under my sites-enabled folder in nginx .. however, the lines where i "add_header 'Access-Control-Allow-Origin' '*';" and add_header "'Access-Control-Allow-Credentials' 'true';" after the if statements are causing my socket to…
DarkArtistry
  • 434
  • 1
  • 6
  • 22
-1
votes
1 answer

Socket can only communicate with one socket.io process

Hello i am trying to make a multiplayer game with nodejs and socket.io. I am using multi process socket.io with cluster and socket.io-redis. It works well if you want to broadcast messages, emit etc. But if i want to add some complexity in my code…
Alex Michailidis
  • 4,078
  • 1
  • 16
  • 35
-2
votes
1 answer

How to listen to internal ping pong of socket.io

I font this solution to listening the internal ping pong. Internal library of Socket.io i.e. engine.io triggers the 'heartbeat' event after sending pong event to client. you can listen to this event using following hack. I tried to override the…
Er. Mohit Agrawal
  • 2,116
  • 1
  • 17
  • 15
-4
votes
1 answer

What port should Node.JS bind to?

I have implemented real time chat using Socket.io with Node.JS Everything works perfectly, except it did not work on my computer. I narrowed the problem down to the fact my router was by default blocking the outbound port (9239) The problem is, I…
Michael
  • 8,229
  • 20
  • 61
  • 113
1 2 3 4 5 6 7
8