this.App =
  UI:
    setAutoHeight: ->
      height = $(window).height()
      $("#height-setter-1").css({height: height - 50})
      $("#height-setter-2").css({height: height - $('#tabbar').outerHeight() - $('#msg-writer').outerHeight() - 57})

  Com:
    connect: ->
      App._dispatcher = new WebSocketRails('xmpp.dev:3000/websocket')
      App._dispatcher.trigger('app.roster.connect')

    fetch: (options) ->
      App._dispatcher.trigger(options.event, options.data, options.success, options.error)