       auth            : auth
       logLevel        : logLevel
       transportClass  : transportClass
+      transportOptions: transportOptions
       prefix          : prefix
 
     @kite.on 'error', @emit.bind this, 'error'  # forward kite error events

    @authenticate()  if @options.autoConnect

  authenticate: (@options = @options) ->
    { url, auth, username, environment, version, region, hostname, name, logLevel, transportClass, prefix } = @options

    @kite = new @constructor.Kite
      username        : username

        key           : token
      logLevel        : @options.logLevel
      transportClass  : @options.transportClass
      transportOptions: @options.transportOptions

  createKites: (kiteDescriptors) ->
    (@createKite k for k in kiteDescriptors)
