Created the initial socket communication