Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
@@ -6,6 +6,7 @@
|
||||
|
||||
|
||||
#include "websocket_server.h"
|
||||
#include <utility>
|
||||
#include <QDebug>
|
||||
|
||||
WebSocketServer::WebSocketServer(quint16 port, QObject *parent)
|
||||
@@ -40,7 +41,7 @@ void WebSocketServer::onTextMessageReceived(QString message) {
|
||||
qDebug() << "Received message:" << message;
|
||||
|
||||
|
||||
for (QWebSocket *client : qAsConst(m_clients)) {
|
||||
for (QWebSocket *client : std::as_const(m_clients)) {
|
||||
if (client->isValid())
|
||||
client->sendTextMessage(message);
|
||||
}
|
||||
@@ -58,7 +59,7 @@ void WebSocketServer::onSocketDisconnected() {
|
||||
void WebSocketServer::sendMessage(QString message)
|
||||
{
|
||||
qDebug() << "sendMessage";
|
||||
for (QWebSocket *client : qAsConst(m_clients)) {
|
||||
for (QWebSocket *client : std::as_const(m_clients)) {
|
||||
if (client->isValid())
|
||||
client->sendTextMessage(message);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user