add socket server and client