working socket server