socket server draft.