By using polymorphism rather conditionals in our RealTimeConnection class, we should be able to clean up our newly test-double-free code. But to do this, we need to re-implement the Socket.IO interface. It’s not as hard as it sounds. We dive in.
Copyright 2012-2019 Titanium I.T. LLC
Proudly sponsored by: