No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to do realtime update of data from azure using API

    Help
    2
    2
    140
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      Beefy_carrot last edited by

      Hi! i want to display sensor data from my azure sql database in realtime. i have come far with it and can display the data using my created function:

      created() {
      axios.get(‘local host link here’)
      .then(response => {
      this.sensors = response.data.slice(-1)[0]
      console.log(response)
      })
      }
      }

      this function gets all the data from the database ( i know not the best way to handle data, but API was tough for me) and logs it out to the consol and add’s it to the data object “sensors”

      My probelm is that i need to refresh the page to get new values. i know i can loop it to run the function several times. but is their another way ??

      qyloxe 1 Reply Last reply Reply Quote 0
      • qyloxe
        qyloxe @Beefy_carrot last edited by qyloxe

        @Beefy_carrot sure, what could help you is this:

        https://en.wikipedia.org/wiki/WebSocket

        or this:

        https://socket.io/

        or even this:

        https://webrtc.org/

        and … maybe this:

        https://pouchdb.com/

        or also that:

        https://rethinkdb.com/

        1 Reply Last reply Reply Quote 0
        • First post
          Last post