          console.log "Addr to be connected is #{data[0].addr}"
          console.log "Token to use is #{data[0].token}"
 
+         @token = data[0].token
          @websocket = @createWebSocket(data[0].addr)
          @registerEvents()
 

      name      : "#{KD.whoami().profile.nickname}"
      method    : "#{@kiteName}.#{methodName}"
      params    : rest
      token     : "124"
      id        : id
    # store callback at localstore
    @localStore[id] = callback
    # send query over websocket

    super
    @readyState = false
    @localStore = {}
    @token = ""
    @getKiteAddr()

  createWebSocket: (url) ->
