Incorrect Comment for publishOnSpecificResponseChannel

Aperta
#554 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@eora21 ci sta già lavorando.

Dal 30/11/2024.

  • #555 di @eora21 — aperta

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
50/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
redis, typescript

Direzione di ricerca

Open lib/index.ts at the publishOnSpecificResponseChannel comment around line 59 and compare its documented channel names with the Redis logs in the issue. Update the comment so both true and false cases use the observed response-channel names, then verify that the option description and default note remain accurate.

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

Descrizione

The comment is as follows:

Whether to publish a response to the channel specific to the requesting node.

- if true, the response will be published to `${key}-request#${nsp}#${uid}#`
- if false, the response will be published to `${key}-request#${nsp}#`

This option currently defaults to false for backward compatibility, but will set to true in the next major release.

@default false

However, the actual response is not published to ${key}-request#${nsp}#${uid}# or ${key}-request#${nsp}#, but to ${key}-response#${nsp}#${uid}# or ${key}-response#${nsp}#.

Below is the Redis logs that I captured while changing the configuration values to confirm the actual behavior.

if true:

1732954490.574914 [0 172.17.0.1:61308] "publish" "socket.io-response#/#XglaEZ#" ...

if false:

1732954953.329108 [0 172.17.0.1:61186] "publish" "socket.io-response#/#" ...
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.