Skip to content

vagromghost/aliyun-ons-http-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aliyun ons http example

开发测试环境

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: "/"

运行Producer

$ node http_producer.js

运行Consumer

$ node http_consumer.js

Releases

No releases published

Packages

No packages published