Skip to content

Instantly share code, notes, and snippets.

@cjlien42
Created February 13, 2015 00:25
Show Gist options
  • Save cjlien42/baf3f6e5b7619e686f32 to your computer and use it in GitHub Desktop.
Save cjlien42/baf3f6e5b7619e686f32 to your computer and use it in GitHub Desktop.
"use strict";
function PonyWrapper(config) {
this.backend = new this.backends[config.backend](config);
return this;
}
PonyWrapper.prototype.backends = require("./backends");
PonyWrapper.prototype.send = function() {
// Process arguments
};
PonyWrapper.prototype.sendBulk = function(messages, callback) {
messages.push(callback);
this.send.apply(null, messages);
};
module.exports = PonyWrapper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment