1 Star 0 Fork 1

小菜鸟先飞 / cmpp3.0

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

node-cmpp-3.0

This is an implementation for CMPP 3.0 protocol.

Now the project passed basic test. But it is not fully tested.

This project is write in Typescript 1.4.

File index.ts is example code. File client.ts is the entry.

Api:

   var Client = require("node-cmpp-3");
   var client = new Client({
    heartbeatInterval: 3 * 60 * 1000, //default
  	heartbeatTimeout: 60 * 1000, //default
  	heartbeatMaxAttempts: 3, //default
  	timeout:30*1000, //default
  	port:7890, //default
  	host:"127.0.0.1", //default
  	serviceId:"serviceName", //default
  	feeCode:"100", //default
  	srcId:"10xxxxxx", //default
    mobilesPerSecond:200 //default
   });
   
   client.connect("spid","secret").then(()=>{
    client.sendGroup(["136xxxxxx","137xxxxx"],"这是一条测试群发短信").catch((err)=>{
        console.log(err);
    });
  });

P.S. all option in constructor can be emitted.

I will be pleasure if this helps.

空文件

简介

暂无描述 展开 收起
JavaScript
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/sunbirder/cmpp3.0.git
git@gitee.com:sunbirder/cmpp3.0.git
sunbirder
cmpp3.0
cmpp3.0
master

搜索帮助