socket server first draft