node v6.10.2
$ cd aliyun-ons-http-example/
$ npm install
修改 config.js
参数。
onsUrl: "publictest-rest.ons.aliyun.com",
onsPort: 80,
producerID: "producerID",
consumerID: "consumerID",
accessKey: "accessKey",
secretKey: "secretKey",
topic: "topic",
successStatusCode: [200, 201, 202, 203, 204, 205, 206],
path: "/"
$ node http_producer.js
$ node http_consumer.js