# reconnect-tls

> Reconnect a tls/ssl stream when it goes down.

Latest version **0.0.2** (published 2016-04-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install reconnect-tls
pnpm add reconnect-tls
yarn add reconnect-tls
bun add reconnect-tls
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2016-04-27 |
| First published | 2014-03-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | fgascon |
| Maintainers | fgascon |
| Keywords | reconnect, tls, ssl |

## Links

- npm: https://www.npmjs.com/package/reconnect-tls
- Repository: https://github.com/fgascon/reconnect-tls
- Homepage: https://github.com/fgascon/reconnect-tls#readme
- Issues: https://github.com/fgascon/reconnect-tls/issues
- npm.io page: https://npm.io/package/reconnect-tls

## Dependencies (1)

- [reconnect-core](https://npm.io/package/reconnect-core.md) ~v1.2.0

## Recent versions

- 0.0.2 (latest) — 2016-04-27
- 0.0.1 — 2014-03-20
- 0.0.0 — 2014-03-17

## README

reconnect-tls
=============

Reconnect a tls/ssl stream when it goes down.

## Installation

Via [npm](https://npmjs.org):

```
npm install reconnect-tls
```

## Usage

```js
var reconnect = require('reconnect-tls');

var options = {
	host: '127.0.0.1',
	post: 8000,
	key: fs.readFileSync('client-key.pem'),
	cert: fs.readFileSync('client-cert.pem')
};

reconnect(function(stream){
	stream.on('data', function(data){
		console.lod('data', data);
	});
}).connect(options);
```

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