coder13 / coder13/LetsCube

Split up server/socket/index.js

Aperta
#17 0 commenti 0 reazioni 1 assegnatario Rivendicata da @coder13 Vedi su GitHub
enhancement
Lingua principale
JavaScript
Stelle
30
Fork
9
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

This file is the last beast to split up.

I just remembered socket packet middleware is a thing

Create middleware that binds socket.room and socket.user with the latest fetch of each.

Somehow only do this for some routes as not all need this.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.