setup socket server