     App.Delay.set @ping, 60000, 'websocket-pong', 'ws'
 
   connect: =>
-    return if @backend is 'ajax'
 
     if !window.WebSocket
       @backend = 'ajax'

      if @connectionEstablished
        @connectionEstablished = false

      return if @backend is 'ajax'

      # show error message, first try to reconnect
      if !@error
        message = =>

          # use fallback if no connection was possible
          if !@connectionWasEstablished
            @backend = 'ajax'
            @log 'notice', 'No connection to websocket, use ajax long polling as fallback'
            @_ajaxInit()
            return

          # show reconnect message
          @error = new App.ControllerModal(

    if window.location.protocol is 'https:'
      protocol = 'wss://'

    if @backend is 'websocket'
      @ws = new window.WebSocket( protocol + window.location.hostname + '/ws' )
    else if @backend is 'websocketPort'
      @ws = new window.WebSocket( protocol + window.location.hostname + ':6042/' )
    else
      @_ajaxInit()

    # Set event handlers.
    @ws.onopen = =>
      @log 'notice', "new websocket (#{@channel()}) connection open"

      @connectionEstablished    = true
      @connectionWasEstablished = true

      # close error message show up (because try so connect again) if exists
