Skip to content

Commit

Permalink
Add return true to example ping handler. Also match up handler var name.
Browse files Browse the repository at this point in the history
  • Loading branch information
lboynton committed Apr 3, 2012
1 parent 01c4b77 commit 530a952
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ping/README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ You can also add a ping handler to receive pings:

Within your ping handler function you surely want to reply with a pong iq:

myHandler = function( ping ){
handler = function( ping ){
...
connection.ping.pong( ping )
connection.ping.pong( ping );
...
return true;
}

## ToDo
Expand Down

0 comments on commit 530a952

Please sign in to comment.