socket basic demo complete