# @xmpp/plugin-reconnect

> XMPP reconnect for JavaScript

Latest version **0.0.1** (published 2016-12-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install @xmpp/plugin-reconnect
pnpm add @xmpp/plugin-reconnect
yarn add @xmpp/plugin-reconnect
bun add @xmpp/plugin-reconnect
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2016-12-10 |
| First published | 2016-12-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2278 |
| Maintainers | xmpp |
| Keywords | XMPP, reconnect |

## Links

- npm: https://www.npmjs.com/package/@xmpp/plugin-reconnect
- Repository: https://github.com/node-xmpp/node-xmpp
- Homepage: https://github.com/node-xmpp/node-xmpp/tree/master/packages/plugin-reconnect
- Issues: http://github.com/node-xmpp/node-xmpp/issues
- npm.io page: https://npm.io/package/@xmpp/plugin-reconnect

## Recent versions

- 0.0.1 (latest) — 2016-12-10

## README

# reconnect

XMPP reconnect for JavaScript

Included in `@xmpp/component`.

## Install

```
npm install @xmpp/plugin-reconnect
```

## Usage

```javascript
const reconnect = require('@xmpp/plugin-reconnect')
const entity = ...

const plugin = entity.plugin(reconnect)

plugin.getDelay() // default is 1000ms
plugin.setDelay(2000)

entity.on('reconnecting', () => {
  console.log('reconnecting')
})

entity.on('reconnected', () => {
  console.log('reconnected')
})

```

---
_Source: https://npm.io/package/@xmpp/plugin-reconnect · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
