summaryrefslogtreecommitdiff
path: root/src/websockets/qwebsocket.cpp
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2020-12-13 22:02:02 +0100
committerAndré Hartmann <aha_1980@gmx.de>2020-12-21 11:11:21 +0000
commitfa6c7e50321e7be048297e5d0ce8503647a9488e (patch)
treebe0c21ddd4a9dca660f4add3646f285ea628987b /src/websockets/qwebsocket.cpp
parent6a6a7203f4e1856044181fb5db51f2f08388d127 (diff)
downloadqtwebsockets-fa6c7e50321e7be048297e5d0ce8503647a9488e.tar.gz
Add doc note about internal ping/pong handling
Pick-to: 5.15 Change-Id: Ic74407b17d03fbfd3077ac1dd4f689a7207ccb51 Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/websockets/qwebsocket.cpp')
-rw-r--r--src/websockets/qwebsocket.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/websockets/qwebsocket.cpp b/src/websockets/qwebsocket.cpp
index 8381047..925ddd1 100644
--- a/src/websockets/qwebsocket.cpp
+++ b/src/websockets/qwebsocket.cpp
@@ -508,6 +508,9 @@ void QWebSocket::open(const QNetworkRequest &request)
The size of the \a payload cannot be bigger than 125.
If it is larger, the \a payload is clipped to 125 bytes.
+ \note QWebSocket and QWebSocketServer handles ping requests internally,
+ which means they automatically send back a pong response to the peer.
+
\sa pong()
*/
void QWebSocket::ping(const QByteArray &payload)