New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-cmpp

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-cmpp

This is an implementation for CMPP 3.0 protocol.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

node-cmpp-3.0

This is an implementation for CMPP 3.0 protocol.

Now the project is under testing, not stable.

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
   });
   
   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.

FAQs

Package last updated on 19 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts