     @remoteStore  = new Store
     @autoReconnect = true
     @readyState = NOTREADY
+    @kontrolEndpoint = "http://localhost:4000/request" #kontrol addr
     @token = ""
     @addr = ""
     @initBackoff options  if @autoReconnect

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


    catch e
      console.log "error: ", e, evt.data

  onError: (evt) ->
    # console.log "#{@kiteName}: error #{evt.data}"

  initBackoff:(options)->
    backoff = options.backoff ? {}
