         @write finalArray.buffer
 
 class TcpConnection extends Connection
-    @isAvailable: -> testFor('net')
+    @isAvailable: () -> true
 
     constructor: (host, callback) ->
         unless TcpConnection.isAvailable()

         throw new RqlDriverError "Expected #{expectedPosArgs} argument(s) but found #{numPosArgs}."
    fun.apply(@, args)

# Test if the requested node module is available
testFor = (module) ->
    try
        return typeof require is 'function' and require(module)
    catch e
        return false

funcWrap = (val) ->
    if val is undefined
        # Pass through the undefined value so it's caught by

net = require('net')
fs = require('fs')
node_protobuf = require('node-protobuf')
events = require('events')

# rethinkdb is both the main export object for the module
# and a function that shortcuts `r.expr`.
rethinkdb = (args...) -> rethinkdb.expr(args...)
