thin layer on top of dnode for controlling node.js servers
JavaScript PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
node_modules
.DS_Store
.gitignore
README-old.md
README.md
makefile
package.json

README.md

Shepard is a utility for communicating between instances.

Features

  • SSH for communicating between instances
  • uses DNode for communication

Server example

var server = require("shepard").server({
  client: {
    port: 8091
  },
  clients: require("awsm")(awsConfig).ec2.instances
}),
aws = require("awsm")(awsConfig);

server.scope.on("helloServer", function () {
  console.log("hello server!");
});

Client Example

var client = require("shepard").client();

client.scope.on("helloClient", function () {
  client.server.emit("helloServer");
});

client.listen(8091);