Startwithgenesis interview question

How we will set up socket at client and server side?