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

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

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