diff --git a/lib/constants.js b/lib/constants.js index 83cb254..e4b90b5 100644 --- a/lib/constants.js +++ b/lib/constants.js @@ -31,6 +31,14 @@ exports.PROTOCOL = { ]; } + if (process.platform === 'win32') { + return [ + os.constants.errno.WSAENOTCONN, + os.constants.errno.WSAECONNREFUSED, + os.constants.errno.WSAECONNRESET, + ]; + } + // Unknown / not yet implemented return []; }