Add "had_error" argument to the "onDisconnect" in node.tcp.Client
This is a boolean value which allows one to detect if the socket was closed due to errors. There is not yet a way to look up the actual error code.
parent
b933743d
Please register or sign in to comment