Shorten attribute to socket