smpp-client

1.0.4 • Public • Published

Smpp Client

Smpp client is a package to help a faster implement.
Version npmnpm Downloads

Installation

Use the package manager npm to install Smpp Client.
NPM

Usage

1. Creating a session

const {Client} = require("smpp-client");
 
const client = Client(
    "foo", 
    "localhost", 
    "2775", 
    "username", 
    "password", 
    10, 
    publisher
);
Name Description
name Name the client
host IP or DNS to connect
port Port smpp
user Username to connect
pass Password to connect
enquire Time to send a enquire_link(seconds)
publisher AMQP\Redis to publish the responses(DLR)

2. Star the client

The start resume the session.

client.start();

3. Stop the client

The stop pause the session.

client.stop();

4. Enable the client

The enable make the bind if server.

client.enable();

5. disable the client

The disable destroy de session if server.

client.disable();

6. Send a message

The send submit a submit pdu to the server.

client.send("Foo bar", +55999999999).then((response) => {
    console.log(response.message_id, response.command_status);
});

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Built With

Package Sidebar

Install

npm i smpp-client

Weekly Downloads

6

Version

1.0.4

License

MIT

Unpacked Size

10.2 kB

Total Files

8

Last publish

Collaborators

  • lucasteodoro