Why not http/websocket client callback error when it fails?
st751228051 opened this issue · comments
st751228051 commented
Now, http client only callback response or null, websocket client only callbak onclose with nothing. When it fails the user doesn't know why by coding.
ithewei commented
libhv does not provide an error callback. I think it is not easy to use. Generally, if an error occurs, the socket can only be closed, so it can be handled in the onclose callback. The error code can be obtained through channel->error()
.