Add a callback when socket info are updated