Nector
A promise driven functional transport layer for isomorphic apps.
* please note API's are in flux here and will change as the project develops. You may find certain versions are broken until this disclaimer is removed I would probably wait until using this.
What is Nector
Nector is a simple server middleware and client that allows you to easily run promise driven functions on the server from the client.
Requirements
To use nector you need an express or connect driven node app with some clientside code that will proxy to your serverside services.
Getting started
Add nector to your project
$ npm install nector --save
On your server use nector to attach middleware to your connect driven server and define methods.
// server.js; const app = ; const nector = ; // pass in endpoint nector; app;
Within your client code create a remote client and call a method.
const nector = ; // pass in endpoint const remoteClient = nector; // pass in full location of your serverconst sayHello = ; // Pass in the name of the remote method you wish to call ;