Permalink
Browse files

Output incoming message.

  • Loading branch information...
1 parent b518e45 commit 3fb76bde1899ead37a5cba56d0f6ceda5d61d5c8 @TheFrozenFire TheFrozenFire committed Mar 12, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 client-example.js
View
@@ -1,4 +1,4 @@
-#!/usr/local/bin/node
+#!/usr/bin/env node
/**
* This file is part of Shorty.
*
@@ -97,7 +97,7 @@ shortyClient.on('disconnect', function() {
* (https://github.com/bnoordhuis/node-iconv).
*/
shortyClient.on('deliver_sm', function(pdu) {
- console.log('incoming message callback fired');
+ console.log(pdu.source_addr.toString('utf8') + ' ' + pdu.destination_addr.toString('utf8') + ' ' + pdu.short_message.toString('utf8'));
});
/**

0 comments on commit 3fb76bd

Please sign in to comment.