floca-amqp-client
Server-side connector for floca-based projects running over AMQP message bus
Usage
Create your connector instance:
var Connector = require('../lib/Connector');
var connector = new Connector();
Connect to the running AMQP server where your floca-based services are connected to:
connector.connect( clientName, amqpURI, flocaName, { }, function(err, res){
} );
Pass a unique name of your client, the URI to the amqp to connect to and the name of the floca-based system.
When it is connected, call a service of a given entity:
connector.connect( clientName, amqpURI, flocaName, { }, function(err, res){
connector.send( 'DivisionName', 'Entity.service', [ 'ArrayOfParameters' ], {}, function(err, res){
} );
} );
Addressing follows the logic of harcon used by floca heavily.
And you are ready to go!
Please check the other client connectors : for WebSocket and for REST