Skip to content
This repository
Browse code

Output incoming message.

  • Loading branch information...
commit 3fb76bde1899ead37a5cba56d0f6ceda5d61d5c8 1 parent b518e45
Justin Martin authored March 12, 2014

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  client-example.js
4  client-example.js
... ...
@@ -1,4 +1,4 @@
1  
-#!/usr/local/bin/node
  1
+#!/usr/bin/env node
2 2
 /**
3 3
  * This file is part of Shorty.
4 4
  *
@@ -97,7 +97,7 @@ shortyClient.on('disconnect', function() {
97 97
  * (https://github.com/bnoordhuis/node-iconv).
98 98
  */
99 99
 shortyClient.on('deliver_sm', function(pdu) {
100  
-    console.log('incoming message callback fired');
  100
+    console.log(pdu.source_addr.toString('utf8') + ' ' + pdu.destination_addr.toString('utf8') + ' ' + pdu.short_message.toString('utf8'));
101 101
 });
102 102
 
103 103
 /**

0 notes on commit 3fb76bd

Please sign in to comment.
Something went wrong with that request. Please try again.