Seperate out socket connection