From 0ca2c91731e2e45e5250f6d62f1b73400934137d Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 11 Oct 2016 13:57:21 -0600 Subject: [PATCH] use callback if necessary --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index e931eb3..27d2e9d 100644 --- a/README.md +++ b/README.md @@ -135,6 +135,10 @@ stunnel.connect({ httpsServer.emit('connection', myDuplex); + if (cb) { + cb(); + } + return myDuplex; } });