JoshGlazebrook/socks

How to handle Error: Socket Closed exception?

ashishnetworks opened this issue · 1 comments

I tried
`socket.on('error', function(err) {
});

        socket.on('end', function(end){
        })

        socket.on('close',function(close){
        })

`

but none of these happen to catch Socket Closed Exception

The socket passed back from the createConnection() callback is just a regular net.Socket so it should be firing those events.