Skip to content

Commit

Permalink
pkg: expose base transport class from primary export
Browse files Browse the repository at this point in the history
  • Loading branch information
esatterwhite committed May 26, 2019
1 parent a9c3afb commit 3bf5b55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@
* @requires skyring/lib/server
**/

const conf = require('./conf')
, Server = require('./lib/server')
, debug = require('debug')('skyring:main')
const conf = require('./conf')
, Server = require('./lib/server')
, Transport = require('./lib/transports/transport')
, debug = require('debug')('skyring:main')
;

module.exports = Server;
module.exports.Transport = Transport;

if( require.main === module ){
process.title = 'skyring';
Expand Down
2 changes: 2 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
'use strict';

module.exports = require('./server');
module.exports.Transport = require('./transports/transport');

0 comments on commit 3bf5b55

Please sign in to comment.