       callbacks   : {}
     @channel.once 'pong', callback  if callback
 
-  setStartPinging: -> @stopPinging = false
+  setStartPinging: -> @stopPinging = yes
 
-  setStopPinging: -> @stopPinging = true
+  setStopPinging: -> @stopPinging = no
 
   handleMessageArrived: ->
     clearTimeout @unresponsiveTimeoutId


  handleBrokerSubscribed:->


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

    @channel.exchange = resourceName
    @emit 'ready'

  handleError: (err) -> console.error err

  handlePong: ->
    @channel.emit 'pong'
