Expose socketState property to the outside