From d6627821b5c68f737e079ded16bed90d9d0fbb92 Mon Sep 17 00:00:00 2001 From: Valentin Boettcher Date: Sun, 8 Apr 2018 07:47:24 +0200 Subject: [PATCH] Update Readme. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e9a8da9..687ed2d 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ autossh({ localPort: 64444, remotePort: 5432 }) -.on('error', err => { +.on('error', (err, killed) => { console.error('ERROR: ', err); }) .on('connect', connection => { @@ -100,7 +100,7 @@ const autosshClient = autossh({ remotePort: 5432 }); -autosshClient.on('error', err => { +autosshClient.on('error', (err, killed) => { console.error('ERROR: ', err); autosshClient.kill(); }); @@ -247,7 +247,7 @@ autossh({ remotePort: 5432, privateKey: '~/.ssh/github_rsa' }) -.on('error', err => { +.on('error', (err, killed) => { console.error('ERROR: ', err); }) .on('connect', connection => { @@ -270,7 +270,7 @@ autossh({ remotePort: 5432, reverse: true }) -.on('error', err => { +.on('error', (err, killed) => { console.error('ERROR: ', err); }) .on('connect', connection => {