WebSocketClient: Replace 'error' with 'errorOccured'

This commit is contained in:
dsc 2023-12-06 03:54:15 +02:00
parent e40d4efd54
commit 5bc3de8af2
No known key found for this signature in database
GPG key ID: 521F1E7991AA42DC

View file

@ -15,7 +15,7 @@ WebsocketClient::WebsocketClient(QObject *parent)
connect(webSocket, &QWebSocket::stateChanged, this, &WebsocketClient::onStateChanged);
connect(webSocket, &QWebSocket::connected, this, &WebsocketClient::onConnected);
connect(webSocket, &QWebSocket::disconnected, this, &WebsocketClient::onDisconnected);
connect(webSocket, QOverload<QAbstractSocket::SocketError>::of(&QWebSocket::error), this, &WebsocketClient::onError);
connect(webSocket, QOverload<QAbstractSocket::SocketError>::of(&QWebSocket::errorOccured), this, &WebsocketClient::onError);
connect(webSocket, &QWebSocket::binaryMessageReceived, this, &WebsocketClient::onbinaryMessageReceived);
@ -144,4 +144,4 @@ void WebsocketClient::onbinaryMessageReceived(const QByteArray &message) {
emit WSMessage(object);
}
WebsocketClient::~WebsocketClient() = default;
WebsocketClient::~WebsocketClient() = default;