Last active
August 29, 2015 14:19
-
-
Save umamialex/207d4dde5d0c53bd1ab0 to your computer and use it in GitHub Desktop.
help-esb Memory Test Sender
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
{ | |
"name": "help-esb-memory-test-sender", | |
"version": "0.1.0", | |
"description": "A test using the help-esb client. This is the sender half.", | |
"main": "server.js", | |
"dependencies": { | |
"bluebird": "^2.9.24", | |
"help-esb": "^0.6.7", | |
"memory-logger": "git+https://gist.github.com/01d17e3280841c01d75e.git" | |
}, | |
"devDependencies": {}, | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"start": "node server.js" | |
}, | |
"author": "Alexander Martin", | |
"license": "MIT" | |
} |
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 HelpEsb = require('help-esb'); | |
var client = new HelpEsb.Client('tcp://localhost:8900'); | |
client.login('memory-test'); | |
setInterval(function() { | |
client.rpcSend('memory test', 'test'); | |
}, 10); | |
var memoryLogger = require('memory-logger'); | |
memoryLogger.start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment