ipc network for microservices on local machine (unix sockets)
Install
$ npm install squiddy
Usage
run the hub process
$ node node_modules/squiddy/hub.js
instantiate a link in a process to make it a client
const ServiceLink = linkconst link = "this-service" link
create a request method
link
(function can syncronous or asyncronous)
call a request method
link
or, with arguments:
link
create a channel
link
broadcast from a channel
link// if specificSubscriber is undefined then this broadcasts to all subscribers
subscribe to a channel
link
or, for multiple actions for a subscription:
linklink
License
MIT