Refactoring real-time socketio clientside to fix multiple client updates.