summaryrefslogtreecommitdiff
path: root/examples/echoclient/echoclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/echoclient/echoclient.cpp')
-rw-r--r--examples/echoclient/echoclient.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/echoclient/echoclient.cpp b/examples/echoclient/echoclient.cpp
index c1ef7ed..dbda381 100644
--- a/examples/echoclient/echoclient.cpp
+++ b/examples/echoclient/echoclient.cpp
@@ -61,8 +61,7 @@ void EchoClient::onConnected()
qDebug() << "Websocket connected";
connect(&m_webSocket, &QWebSocket::textMessageReceived,
this, &EchoClient::onTextMessageReceived);
- qint64 bytesWritten = m_webSocket.sendTextMessage(QStringLiteral("Hello, world!"));
- Q_UNUSED(bytesWritten);
+ m_webSocket.sendTextMessage(QStringLiteral("Hello, world!"));
}
//! [onConnected]