reconnect-tls
v0.0.2
Published
Reconnect a tls/ssl stream when it goes down.
Downloads
3
Readme
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);