Permalink
Browse files

Refactored connection handling.

Now making extensive use of promises. Including the possibility of handling notification errors with a promise also.
  • Loading branch information...
1 parent 0c01598 commit 519c011bebf01cd017c4d047a69b2eea2b7dc960 @argon argon committed Jun 13, 2012
Showing with 612 additions and 518 deletions.
  1. +14 −1 index.js
  2. +0 −514 lib/apn.js
  3. +289 −0 lib/connection.js
  4. +60 −0 lib/device.js
  5. +14 −0 lib/errors.js
  6. +162 −0 lib/feedback.js
  7. +31 −0 lib/notification.js
  8. +31 −0 lib/util.js
  9. +11 −3 package.json
View
@@ -1 +1,14 @@
-module.exports = require('./lib/apn');
+exports.Connection = require('./lib/connection');
+exports.connection = exports.Connection;
+
+exports.Device = require("./lib/device");
+exports.device = exports.Device;
+
+exports.Errors = require('./lib/errors');
+exports.error = exports.Errors;
+
+exports.Feedback = require("./lib/feedback");
+exports.feedback = exports.Feedback;
+
+exports.Notification = require("./lib/notification");
+exports.notification = exports.Notification;
Oops, something went wrong.

0 comments on commit 519c011

Please sign in to comment.