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. How to make a websocket ping/pong in QML?

How to make a websocket ping/pong in QML?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 383 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.
  • W Offline
    W Offline
    Wiru
    wrote on last edited by
    #1

    I'm trying to make a ping/pong system to check if the connection with the server is still up, but there is no mention about it in the documentation for WebSocket QML Type.
    However QWebSocket Class has all the needed functions. How come the QML type as it's interface doesn't have them implemented, or I'm doing something wrong?

    Is it possible to "simulate" a ping/pong using one of the send methods and check the response in the co-responding received signal?
    Or should I implement the functionality from the class in some cpp/hpp file and use it that way?

    1 Reply Last reply
    0

    • Login

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