I have an application using node.js where multiples objects has a reference to socketio implementation. Every one of them opens an on-connection event in order to add their particular events to the socket connection, like this:
this.io.on('connection', function(socket){
socket.on('subs', function(sub){
self.processSub(sub);
});
// more events
});
I have like 10 of these objects and the idea is to keep adding modules using this architecture.
My question is:
Does socket.io is designed for this kind of usage ? and does it could have a serious performance consideration ?
as always, thanks for your time ;)