loopback/node_modules/connection/lib/connection.js

36 lines
627 B
JavaScript
Raw Normal View History

/**
* Expose `Connection`.
*/
module.exports = Connection;
/**
* Module dependencies.
*/
var AsteroidModule = require('asteroid-module')
,
, debug = require('debug')('connection')
, util = require('util')
, inherits = util.inherits
, assert = require('assert');
/**
* Create a new `Connection` with the given `options`.
*
* @param {Object} options
* @return {Connection}
*/
function Connection(options) {
AsteroidModule.apply(this, arguments);
this.options = options;
debug('created with options', options);
}
/**
* Inherit from `AsteroidModule`.
*/
inherits(Connection, AsteroidModule);