     @channel.exchange = resourceName
     @emit 'ready'
 
-  handleError: (err) ->
-    @cycleChannel()
-    console.error err
+  handleError: (err) -> console.error err
 
   handlePong: ->
     @channel.emit 'pong'


  handleBrokerSubscribed:->


  cycleChannel: ->
    @setStopPinging()
    @channel.off()

      callbacks   : {}
    @channel.once 'pong', callback  if callback

  setStartPinging: -> @stopPinging = yes

  setStopPinging: -> @stopPinging = no

  handleMessageArrived: ->
    clearTimeout @unresponsiveTimeoutId
