Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/readme-typos.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@semyonf/smpp': patch
---

Fix typos in the README.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ var server = smpp.createServer({
debug: true
}, function(session) {
session.on('error', function (err) {
// Something ocurred, not listening for this event will terminate the program
// Something occurred, not listening for this event will terminate the program
});
session.on('bind_transceiver', function(pdu) {
// we pause the session to prevent further incoming pdu events,
// untill we authorize the session with some async operation.
// until we authorize the session with some async operation.
session.pause();
checkAsyncUserPass(pdu.system_id, pdu.password, function(err) {
if (err) {
Expand Down Expand Up @@ -334,7 +334,7 @@ If supplied, the `callback` is called once the session is fully closed.

#### session.destroy([callback])
Forcibly closes the current session connection. This aids some broken servers,
that don't honor gracefull tear-down. ( Looking at you SMPPSim )
that don't honor graceful tear-down. ( Looking at you SMPPSim )
If supplied, the `callback` is called once the session is fully closed.

#### session.connect()
Expand All @@ -354,7 +354,7 @@ Throws when called on a server session, and when `net.connect()` or `tls.connect
options, in which case the session is left as it was.

#### session.pause()
Can be used to postpone incoming pdu events untill calling `session.resume()`.
Can be used to postpone incoming pdu events until calling `session.resume()`.

#### session.resume()
Resumes the session after a call to `pause()`.
Expand Down Expand Up @@ -399,7 +399,7 @@ var session = smpp.connect('ssmpp://smpp.example.org:3550', function() {

#### Shortcut methods
For all smpp operations you can call methods with the same name as the operation
name, which is equivalent to createing a pdu instance and then sending it over
name, which is equivalent to creating a pdu instance and then sending it over
the session.

For example calling `session.submit_sm(options, [responseCallback], [sendCallback], [failureCallback])` is equivalent to:
Expand Down Expand Up @@ -522,7 +522,7 @@ automatically set depending on the `dest_address` and `unsuccess_sme` parameters
respectively.
- TLV parameters which can be specified multiple times
(e.g. `broadcast_area_identifier`), must be specified as an array, even if you
want to specifiy just one item.
want to specify just one item.

#### pdu.isResponse()
Returns `true` if the pdu is a response pdu, otherwise returns false;
Expand Down
Loading