Skip to content

Instantly share code, notes, and snippets.

@umamialex
Last active August 29, 2015 14:19
Show Gist options
  • Save umamialex/b68e185a4ec555a26a13 to your computer and use it in GitHub Desktop.
Save umamialex/b68e185a4ec555a26a13 to your computer and use it in GitHub Desktop.
help-esb Memory Test Responder
{
"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"
}
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