     @disconnected()
 
     setTimeout =>
-      if @isMaxConnectionAttemptsReached()
-        @giveUp()
-      else
-        @incrementConnectionAttemptsCount()
-        @connect()
+      @incrementConnectionAttemptsCount()
+      @connect()
     , @generateReconnectInterval()
 
   resetConnectionAttemptsCount: =>

#= require_tree .

class @Cable
  MAX_CONNECTION_ATTEMPTS: 10
  MAX_CONNECTION_INTERVAL: 5 * 1000
  PING_STALE_INTERVAL: 6



  incrementConnectionAttemptsCount: =>
    @connectionAttempts += 1

  generateReconnectInterval: () ->
    interval = (Math.pow(2, @connectionAttempts) - 1) * 1000
