sample nodejs code: p2p, proxy, client ssl certificate based authentification, etc