cli + sockets + example