Skip to content

Commit e1071b5

Browse files
gergelykedanielmewes
authored andcommitted
chore(modules): exposing the net class (#5759)
1 parent 8eb8012 commit e1071b5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

net.coffee

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,3 +1665,8 @@ module.exports.connect = varar 0, 2, (hostOrCallback, callback) ->
16651665
resolve(result)
16661666
create_connection(host, wrappedCb)
16671667
).nodeify callback
1668+
1669+
# Exposing the connection classes
1670+
module.exports.Connection = Connection
1671+
module.exports.HttpConnection = HttpConnection
1672+
module.exports.TcpConnection = TcpConnection

rethinkdb.coffee

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ rethinkdb.Error = error
1212
rethinkdb._bluebird = require('bluebird')
1313

1414
module.exports = rethinkdb
15+
module.exports.net = net

0 commit comments

Comments
 (0)