set value of connected on adapter when socket opens