1.1.0 • Published 6 years ago

floca-socket-client v1.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

floca-socket-client

Client for webapps to connect to services in a floca-based projects published via Websocket.

Usage

Require your connector:

var Connector = require('floca-socket-client');

Connect to the running floca server from your webapp:

var options = {};
Connector.connect( 'WebSocketURI', options, function(err,res){

} );

Pass the socket path used in your floca-based project.

When it is connected, emit a message to a service of a given entity:

Connector.emit( division, event, params, opts, function(err, response){

} );

Addressing follows the logic of harcon used by floca heavily.

And you are ready to go!

Please check the other client connectors : for AMQP and for REST

1.1.0

6 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.9.5

7 years ago

0.9.0

7 years ago

0.8.0

8 years ago

0.5.4

8 years ago

0.5.3

8 years ago

0.5.2

8 years ago

0.1.0

8 years ago