#= require websocket_rails/main
#= require hamlcoffee
#= require underscore
#= require backbone
#= require backbone_rails_sync
#= require backbone_datalink
#= require backbone/xmpp
#= require i18n
#= require i18n/translations
#= require _main
#= require chat

App.Com.connect( (connected_jid) ->
  App.Com.initRoster(->
    App.Com.startFetchingVcards()
    App.Com.startPollingRoster()
    App.Com.setPresence()

    App.Com.getMe()
    App.Com.startPollingMessages()
  )
)