Created
November 3, 2012 15:42
-
-
Save rfink/4007683 to your computer and use it in GitHub Desktop.
Client for axon slowness
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var axon = require('axon'), socket = axon.socket('req'); | |
| socket.format('json'); | |
| socket.bind(22153); | |
| var payload = { | |
| "applicationId": "509508637f8b9ac804000000", | |
| "secretKey": "mandoorhandhookcardoor", | |
| "context": { | |
| "Property1": "crapweasel" | |
| }, | |
| "startDateTime": "2012-11-01 00:00:00" // This should be a string parse-able via javascript Date.parse | |
| }; | |
| var t = new Date(); | |
| socket.send('/verdict/execute', payload, function(err, res) { | |
| console.log('Millseconds: ' + ((new Date()) - t)); | |
| console.log(arguments); | |
| socket.close(); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment