Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Get update via Server-Sent Events (eventsource) from server

Get update via Server-Sent Events (eventsource) from server

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 1.5k Views
  • 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.
  • D Offline
    D Offline
    drategon
    wrote on last edited by
    #1

    How do we code for this?
    SSE:http://dev.w3.org/html5/eventsource/
    I know JS is able to do this. But, not sure Qt is support SSE.
    @if (!!window.EventSource) {
    var source = new EventSource('sse.php');
    } else {
    // error
    }
    Is there away to do it to C++?

    LinArcXL 1 Reply Last reply
    0
    • D drategon

      How do we code for this?
      SSE:http://dev.w3.org/html5/eventsource/
      I know JS is able to do this. But, not sure Qt is support SSE.
      @if (!!window.EventSource) {
      var source = new EventSource('sse.php');
      } else {
      // error
      }
      Is there away to do it to C++?

      LinArcXL Offline
      LinArcXL Offline
      LinArcX
      wrote on last edited by
      #2

      @drategon
      Sorry for opening this thread.

      But this is my question also. How fetch sse events in qt?

      1 Reply Last reply
      0
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        I think you can use
        QNetworkAccessManager for this
        https://stackoverflow.com/questions/54170742/server-sent-events-sse-with-qt

        but i never tested it :)

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved