Skip to content

Instantly share code, notes, and snippets.

@tanepiper
Created August 31, 2012 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanepiper/54affd7aadbfd971793c to your computer and use it in GitHub Desktop.
Save tanepiper/54affd7aadbfd971793c to your computer and use it in GitHub Desktop.
var ports = require('seaport').connect(7000, { secret : 'beep boop' });
var punchbag = require('./punchbag');
// Set up our server to listen
ports.service('web.chartaca.com', {mount: '/pb'}, function (port, ready) {
punchbag().listen(port, ready);
});
// Set up our server to listen
ports.service('web.count.chartaca.com', function (port, ready) {
punchbag().listen(port, ready);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment