You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems there is no way to attach error handlers to HTTP servers. Am I missing something?
E.g. the equivalent of the following JS:
var s = http.createServer(h);
s.on('error', function(err) { console.log('oops!', err); });
s.listen(9000); // in case of failure, will call the above callback
The text was updated successfully, but these errors were encountered:
I don't think you're missing anything, I think it is just that nobody has needed that yet so there's no binding for it. I guess we want an onError :: Server -> (Error -> Eff _ Unit) -> Eff _ Unit in Node.HTTP?
Uh oh!
There was an error while loading. Please reload this page.
It seems there is no way to attach error handlers to HTTP servers. Am I missing something?
E.g. the equivalent of the following JS:
The text was updated successfully, but these errors were encountered: