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. QWebsocket::closeReason()
Forum Updated to NodeBB v4.3 + New Features

QWebsocket::closeReason()

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

    If the server closes the socket, is this "reason" obtainable? Or is it only used if the client closes the socket? In other words, I guess I wonder what the reason is for this accessor? If the client (my qt app) closes the socket, it certainly knows the reason. If the server closes the socket, it knows the reason. My client app wants to know the reason the server closed so can I use this method to get the reason?

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      See QWebSocket::closeCode() to retrieve the reason.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      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