Switch to single callback for all socket events.