socket server usage