# sc-publish-out-queue

> SC Publish Out Queue ====================

Latest version **0.2.2** (published 2017-11-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install sc-publish-out-queue
pnpm add sc-publish-out-queue
yarn add sc-publish-out-queue
bun add sc-publish-out-queue
```

## Health

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

Positive: no vulnerabilities; high maintenance score.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2017-11-27 |
| First published | 2017-10-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Nick Kotenberg |
| Maintainers | happilymarrieddad, fusionwarellc |
| Keywords | SocketCluster, Publish, Queue |

## Links

- npm: https://www.npmjs.com/package/sc-publish-out-queue
- Repository: https://github.com/happilymarrieddad/sc-publish-out-queue
- Homepage: https://github.com/happilymarrieddad/sc-publish-out-queue#readme
- Issues: https://github.com/happilymarrieddad/sc-publish-out-queue/issues
- npm.io page: https://npm.io/package/sc-publish-out-queue

## Alternatives

- [cron](https://npm.io/package/cron.md) — 4.9M weekly downloads
- [@vercel/queue](https://npm.io/package/@vercel/queue.md) — 731.6K weekly downloads
- [create-sonicjs](https://npm.io/package/create-sonicjs.md) — 1.6K weekly downloads
- [@exellix/jobs-api](https://npm.io/package/@exellix/jobs-api.md) — 941 weekly downloads
- [@forwardimpact/libskill](https://npm.io/package/@forwardimpact/libskill.md) — 575 weekly downloads

## Recent versions

- 0.2.2 (latest) — 2017-11-27
- 0.2.1 — 2017-10-30
- 0.2.0 — 2017-10-30
- 0.1.4 — 2017-10-26
- 0.1.3 — 2017-10-26
- 0.1.2 — 2017-10-26
- 0.1.1 — 2017-10-26
- 0.1.0 — 2017-10-26
- 0.0.2 — 2017-10-26

## README

SC Publish Out Queue
====================

## Change Log
0.2.2 - Nov 27, 2017 - Check to see if socket is connected before emiting back.

## Installation
```js
npm install sc-publish-out-queue --save
```

## Usage
```js
let scPublishOutHandler = require('sc-publish-out-queue')

scPublishOutHandler.attach(worker,{
	debug:true,				// Defaults to false
	timeout:100, 			// in milliseconds; defaults to 10
	numOfMessagesPerPass 	// Num of packets it will clear at a time; defaults to 100
})
```

## Example
There is an example in the sample folder. You need to first spin up a state server and a broker. You can just clone the socketcluster repos for this if you want. Then npm start the sample folder. Open up a browser to localhost:8000. Open your dev tools and send a socket.publish('send-data',{ id:1 }) and every client that's connected will see this message only once per a publish. The system is ALIVE! Thanks!

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