     catch e
       console.log "error: ", e, evt.data
 
-  onError : (evt) -> console.log "#{@kiteName}: Error #{evt.data}"
+  onError: (evt) ->
+    # console.log "#{@kiteName}: error #{evt.data}"
 
   initBackoff:(options)->
     backoff = options.backoff ? {}

    @autoReconnect = !!reconnect  if reconnect?
    @ws.close()

  onOpen: ->
    console.log "connected"
    @clearBackoffTimeout()
    @readyState = READY
    @emit 'ready'
    @emit 'connected'

  onClose : (evt) ->
    console.log "#{@kiteName}: Disconnected"
    @readyState = CLOSED
    if @autoReconnect
      KD.utils.defer => @setBackoffTimeout @bound "connect"

  onMessage : (evt) ->
    try
      args = JSON.parse evt.data
      {method} = args

    try
      if @readyState is READY
        @ws.send JSON.stringify data
        console.log "sending", {data}
      else
        console.log "slow down ... I'm still trying to reconnect!"
    catch e
      @disconnect()

