     client = new Transport def
 
     connectClient client, (err, def) ->
-      return callback err, client, def, state
+      return callback err, client, def, state, httpServer
 
 # FIXME: move to protocol
 

fbpClient = require 'fbp-protocol-client'
mochacompat = require '../src/mochacompat'
protocol = require '../src/protocol'

testPath = (name) ->
  path = require 'path'

  client.connect()

setupAndConnect = (options, callback) ->
  mochacompat.setup options, (err, state, httpServer) ->
    return callback err if err
    def =
      protocol: 'websocket'
