You are reading a single comment by @sureshkm and its replies.
Click here to read the full conversation.
-
Thanks @PaddeK, i just tried to use the callback, but unfortunately there is no callback it seems.
Thanks @PaddeK, i just tried to use the callback, but unfortunately there is no callback it seems.
If the http module is the one from nodejs the close function does have a callback parameter.
It gets called when the connection is actually closed.
-- Edit --
Just for completeness sake.. you could also listen to the "close" event.