Unclear documentation around "channels"

Aperta
#504 1 commento 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Documentazione
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
redis, typescript

Direzione di ricerca

Start with README.md and the adapter code related to channel construction. Verify whether room-specific channels and sharded Redis behavior match the documented examples, including which servers receive messages. Done means the documentation clearly explains channel naming, subscriptions, room routing, and the scope of sharded Redis support.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hi!

1 question:

From what it seems that channels are according to "namespace" only, and not by roomId.

e.g:

this.channel = prefix + "#" + nsp.name + "#"; this.requestChannel = prefix + "-request#" + this.nsp.name + "#"; this.responseChannel = prefix + "-response#" + this.nsp.name + "#"; this.specificResponseChannel = this.responseChannel + this.uid + "#";

But, in the README.md file, you are suggesting prefix + '#' + namespace + '#' + room + '#' will be the way to distribute a message to a specific room.

I would also add what is the behavior when subscribing to a channel. For example, if room A is at server 1 and room B is at server 2, does sever1 will receive messages that are related to server2 (the load-balancer somehow magically did that each room belongs to 1 server, leave the optimization aside of that ;) )

It's implemented only in the sharded redis adapter? from the code it seems like, but not from the docs

Thanks! Please let me know if I can help somehow with the questions above :))
-m

Lingua principale
TypeScript
Stelle
2.8k
Fork
485
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di socketio/socket.io-redis-adapter

Tutte le issue di socketio/socket.io-redis-adapter

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.