Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended callbacks #24

Closed
wants to merge 2 commits into from
Closed

Conversation

bosky101
Copy link

great library!

i needed to have individual callbacks for each notification sent, (in a webserver environment that had it's own scope) . so have added support for an additional argument in sendNotification. i also added a successcalback that i have tested in this approach.

have added documentation & my edits as two commits.

cheers.
~B

…t notification. successCallback is also added - useful in evented handling after a notification is sent
@bosky101 bosky101 closed this Feb 18, 2012
@bosky101
Copy link
Author

in-complete.

@CrabBot
Copy link

CrabBot commented Jan 14, 2013

This would be a nice feature to have. Even though the information is available via the event system, from a control-flow sense, it would be nice to know if a request completed successfully or errored.

@argon argon reopened this Jan 14, 2013
@argon
Copy link
Collaborator

argon commented Feb 9, 2013

There is now an event transmitted which is emitted when a notification has successfully been written out to the socket. This event may be emitted multiple times if an error occurs for another notification and it has to be resent. A transmissionError may also be raised later if Apple finds a problem with the notification.

@argon argon closed this Feb 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants