$ npm install pulsar-client
const Pulsar = require('pulsar-client');(async () => {const client = new Pulsar.Client({serviceUrl: 'http://*', //更换为接入地址(控制台集群管理页完整复制)authentication: Pulsar.NewAuthenticationToken("eyJh**"), //更换为密钥});await client.close();})();
本页内容是否解决了您的问题?