Startwithgenesis interview question

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