DRYing Up the Server

The Socket.IO-related code in our server has a lot of duplication in the way it handles various events. We need to reduce that duplication without painting ourselves into a corner. The solutions we come up with aren’t perfect, but they’re good enough for now.

comments powered by Disqus