From 22b4ab7aaad2ac1f78ec13902e7f110e247bda54 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Tue, 15 May 2018 15:59:41 +0200 Subject: [PATCH] socket: don't emit premature 'close' --- doc/api/net.md | 5 +---- lib/net.js | 36 +++++++++++++++++------------------- 2 files changed, 18 insertions(+), 23 deletions(-) diff --git a/doc/api/net.md b/doc/api/net.md index 21d14fc7068bc5..82a158d0a0968e 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -407,10 +407,7 @@ endpoint, depending on what it [`connect()`][`socket.connect()`] to. added: v0.1.90 --> -* `hadError` {boolean} `true` if the socket had a transmission error. - -Emitted once the socket is fully closed. The argument `hadError` is a boolean -which says if the socket was closed due to a transmission error. +Emitted once the socket is fully closed. ### Event: 'connect'