update socket server/client simple example