# floca-socket-client

> Websocket client for floca-based projects

Latest version **1.1.0** (published 2018-01-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install floca-socket-client
pnpm add floca-socket-client
yarn add floca-socket-client
bun add floca-socket-client
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2018-01-16 |
| First published | 2016-01-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 6.0.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Imre Fazekas |
| Maintainers | imre.fazekas, upwardsmotion |
| Keywords | microservice, messaging, enterprise service bus, Websocket |

## Links

- npm: https://www.npmjs.com/package/floca-socket-client
- Repository: https://github.com/UpwardsMotion/floca-socket-client
- Issues: https://github.com/UpwardsMotion/floca-socket-client/issues
- npm.io page: https://npm.io/package/floca-socket-client

## Dependencies (1)

- [socket.io-client](https://npm.io/package/socket.io-client.md) ^2.0.4

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2018-01-16
- 1.0.2 — 2017-07-30
- 1.0.1 — 2017-06-02
- 1.0.0 — 2017-05-13
- 0.9.5 — 2017-03-12
- 0.9.0 — 2017-01-10
- 0.8.0 — 2016-10-08
- 0.5.4 — 2016-06-30
- 0.5.3 — 2016-06-03
- 0.5.2 — 2016-06-03
- 0.1.0 — 2016-01-28

## README

# floca-socket-client
Client for webapps to connect to services in a [floca](https://github.com/UpwardsMotion/floca)-based projects published via Websocket.

## Usage

Require your connector:

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

Connect to the running [floca](https://github.com/UpwardsMotion/floca) server from your webapp:

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

} );
```

Pass the socket path used in your [floca](https://github.com/UpwardsMotion/floca)-based project.

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

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

} );
```

Addressing follows the logic of [harcon](https://github.com/imrefazekas/harcon) used by [floca](https://github.com/UpwardsMotion/floca) heavily.

And you are ready to go!

Please check the other client connectors : for [AMQP](https://github.com/UpwardsMotion/floca-amqp-client) and for [REST](https://github.com/UpwardsMotion/floca-rest-client)

---
_Source: https://npm.io/package/floca-socket-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
