Socket
Book a DemoInstallSign in
Socket

floca-socket-client

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

floca-socket-client

Websocket client for floca-based projects

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
2
Created
Source

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

Keywords

microservice

FAQs

Package last updated on 16 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts