Run callback immediately if socket is already connected