Roave / shorty

An asynchronous SMPP client and server built on Node.js. Shorty is sponsored and maintained by SMS Cloud, a subsidiary of Roave
http://roave.com/
GNU General Public License v3.0
92 stars 52 forks source link

Unable to unbind a client manually #21

Closed navsaini53 closed 5 years ago

navsaini53 commented 8 years ago

when i connect to smpp it falls error to "bindFailure" event and giving pdu ={ command_length: 21, command_id: 2147483650, command_status: 5, sequence_number: 2 }

here command_status means my client already binded to server..

to resolve this i did this

shorty_Promotional_TX.on('bindFailure', function (pdu) { shorty_Promotional_TX.unbind(); console.log(pdu) });

but no fruit comes .. so how to unbind forcefully if already connected to smpp