       rfb = @get "rfb"
       deviceToken = @get "file.deviceToken"
       rfb.connect ENV.deviceFarmHost, ENV.deviceFarmPort, '1234', "#{ENV.deviceFarmPath}?token=#{deviceToken}"
+      setTimeout(@.set_ratio.bind(@), 500)
 
     disconnect: ->
       rfb = @get "rfb"

    that = @
    @set "rfb", new RFB
      'target': canvasEl
      'encrypt': ENV.deviceFarmSsl
      'repeaterID': ''
      'true_color': true

        if ENUMS.PLATFORM.IOS isnt that.get "file.project.platform"
          # Only resize iOS Devices
          return true
        setTimeout(that.set_ratio.bind(that), 500)
        true

      'onXvpInit': ->
