Skip to content

vladislavPV/reconnect-tls

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reconnect-tls

Reconnect a tls/ssl stream when it goes down.

Installation

Via npm:

npm install reconnect-tls

Usage

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);

About

Reconnect a tls/ssl stream when it goes down.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%