Skip to content

Commit

Permalink
Added win32 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarfd committed May 31, 2021
1 parent d39f745 commit 027ce7b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];
}
Expand Down

0 comments on commit 027ce7b

Please sign in to comment.