Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Commit

Permalink
feat(api): keep the isListener api
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Sep 6, 2016
1 parent fed8198 commit bfcc8f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function create (rawConn, isListener) {
return new Muxer(rawConn, spdyMuxer)
}

exports = module.exports = create
exports.multicodec = SPDY_CODEC
exports.dial = (conn) => create(conn, false)
exports.listen = (conn) => create(conn, true)
exports.dialer = (conn) => create(conn, false)
exports.listener = (conn) => create(conn, true)

0 comments on commit bfcc8f0

Please sign in to comment.