Added socketDescriptor() method [ci skip]