init echo server and client