Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

space to tabs for examples in readme.md

  • Loading branch information...
commit 6901997d2835caa9d1f3ea15a60a00df1c37c0b9 1 parent 6429e7f
@kaven276 authored
Showing with 21 additions and 21 deletions.
  1. +21 −21 Readme.md
View
42 Readme.md
@@ -23,25 +23,25 @@ Examples:
You can read the test part in every code file, like "lib/nodes/nodeSP.js".
- var sp = new SP('202.99.87.201', 8801, 'dialbook', 'dialbooktest', 8801, '', 'dialbook', 'dialbooktest');
- var msg = new Submit('8615620001781', 8, 'some ucs2 encoded test or just a Buffer object', {'ReportFlag':1});
-
- // event mode
- sp.send(msg);
- sp.on('resp', function(msgResp, msgSend){
- console.log('send message success for :');
- console.log(msgResp);
- console.log(sp.ackQueue.length);
- });
-
- // callback mode
- sp.send(msg,function(res, req){
- // console.log('pair are', req, res, 'end');
- });
-
- // accept SMG request, like report, deliver, ...
- sp.on('request', function(req){
- console.log('\nReport:');
- console.log(req);
- });
+ var sp = new SP('202.99.87.201', 8801, 'dialbook', 'dialbooktest', 8801, '', 'dialbook', 'dialbooktest');
+ var msg = new Submit('8615620001781', 8, 'some ucs2 encoded test or just a Buffer object', {'ReportFlag':1});
+
+ // event mode
+ sp.send(msg);
+ sp.on('resp', function(msgResp, msgSend){
+ console.log('send message success for :');
+ console.log(msgResp);
+ console.log(sp.ackQueue.length);
+ });
+
+ // callback mode
+ sp.send(msg,function(res, req){
+ // console.log('pair are', req, res, 'end');
+ });
+
+ // accept SMG request, like report, deliver, ...
+ sp.on('request', function(req){
+ console.log('\nReport:');
+ console.log(req);
+ });
Please sign in to comment.
Something went wrong with that request. Please try again.