Added comment relating to issue #57 since it keeps coming up.
This commit is contained in:
parent
f8efe5b99e
commit
47d9aac8f3
|
|
@ -40,6 +40,12 @@ module.exports = class{
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//My brain keeps going back to using dynamic per-user namespaces for this
|
||||||
|
//but everytime i look into it I come to the conclusion that it's a bad idea, then I toy with making chans namespaces
|
||||||
|
//and using per-user channels for this, but what of gold or mod-only features? or games?
|
||||||
|
//No matter what it'd probably end up hacky, as namespaces where meant for splitting app logic not user comms (like rooms).
|
||||||
|
//at the end of the day there has to be some penance for decent multi-session handling on-top of a library that doesn't do it.
|
||||||
|
//Having to crawl through these sockets is that. Because the other ways seem more gross somehow.
|
||||||
emit(eventName, args){
|
emit(eventName, args){
|
||||||
this.socketCrawl((socket)=>{socket.emit(eventName, args)});
|
this.socketCrawl((socket)=>{socket.emit(eventName, args)});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue