Ensure that events also send the message to the socket through the proper thread/order.

This commit is contained in:
Ken Moore
2016-03-23 14:27:42 -04:00
parent 3acadf13d0
commit bec2898567

View File

@@ -441,5 +441,5 @@ void WebSocket::EventUpdate(EventWatcher::EVENT_TYPE evtype, QJsonValue msg){
out.in_struct.name = EventWatcher::typeToString(evtype);
qDebug() << "Send Event:" << out.assembleMessage();
//Now send the message back through the socket
this->sendReply(out.assembleMessage());
this->emit SendMessage(out.assembleMessage());
}