Closed milas closed 9 years ago
Awesome – thanks for writing this!
A couple of observations:
Apart from that, looks great, thanks again.
Agh, thanks for pointing out the semi-colons! I tried to match the existing style where possible, but old habits die hard, and a couple slipped through.
Between my initial PR and this one, I realized this project was targeting 0.8, which explained why the implementation was such in the first place. Glad you're okay with making the jump to >0.10!
And thanks for this package -- using it with Bunyan + Graylog2 has been fantastic so far.
Brilliant, merging!
Released as v1.0.0 – thanks again, and glad it's working well for you – I haven't used it in ages! :smile_cat:
Inherit from
stream.Writeable
and implement a_write()
function, allowing the core library to take care of all other concerns. Adestroy()
method is added, and invoked afterfinish
is emitted, which closes the underlying UDP client and emits aclose
event.This supersedes #6. See that PR for my rationale for this. The big win is that if
end()
is called, it should wait until any outstandingclient.send()
calls finish before invoking the callback, and then destroying itself.