argon/node-apn — Issue #25: successCallback ?
Author: bosky101
Created: 2012-02-20 05:19:45+00:00
State: open

i tried to investigate the events the socket triggers:

# successfully sent
writeToSocket
socket.write
onDrain called with writeBuffer.length 0
drained

# error
writeToSocket
socket.write
onDrain called with writeBuffer.length 0
drained
socket on data
errorCallback
socket close with undefined

both success & error, have the first four events common. the only difference with error is that data is returned on the same socket, and then closed.

is it possible to set a successcallback (that doesnt rely on timers for an error to come back ) ?