Skip to content

Commit

Permalink
Merge pull request #13 from modestkdr/patch-1
Browse files Browse the repository at this point in the history
Added "id" as third param to example function in README
  • Loading branch information
mpneuried committed May 23, 2016
2 parents 190d902 + ec22fcf commit b72e124
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ Helper to simply implement a worker [RSMQ ( Redis Simple Message Queue )](https:
var RSMQWorker = require( "rsmq-worker" );
var worker = new RSMQWorker( "myqueue" );

worker.on( "message", function( msg, next ){
worker.on( "message", function( msg, next, id ){
// process your message
console.log("Message id : " + id);
console.log(msg);
next()
});

Expand Down

0 comments on commit b72e124

Please sign in to comment.