Last active
August 29, 2015 14:19
-
-
Save umamialex/b68e185a4ec555a26a13 to your computer and use it in GitHub Desktop.
help-esb Memory Test Responder
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-responder", | |
"version": "0.1.0", | |
"description": "A test using the help-esb client. This is the responder half.", | |
"main": "server.js", | |
"dependencies": { | |
"help-esb": "^0.6.7", | |
"memory-logger": "git+https://gist.github.com/01d17e3280841c01d75e.git", | |
"bluebird": "^2.9.24" | |
}, | |
"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-response'); | |
client.rpcReceive('memory test', function(msg) { return 'sup'; }); | |
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