Rework 'connectedSocket' resolve.