1.0.4 • Published 4 years ago

smpp-client v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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
);
NameDescription
nameName the client
hostIP or DNS to connect
portPort smpp
userUsername to connect
passPassword to connect
enquireTime to send a enquire_link(seconds)
publisherAMQP\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

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago