add socket server/client