feat(plugins): add c2.WebSocket (#6076)

This commit is contained in:
nerix
2025-04-07 19:38:10 +02:00
committed by GitHub
parent d3bab9132f
commit ab66be21b3
31 changed files with 1859 additions and 29 deletions
+6
View File
@@ -35,6 +35,7 @@ public:
void waitForRequest()
{
using namespace std::chrono_literals;
auto start = std::chrono::system_clock::now();
while (true)
{
@@ -50,6 +51,11 @@ public:
}
QCoreApplication::processEvents(QEventLoop::AllEvents);
QCoreApplication::sendPostedEvents(nullptr, QEvent::DeferredDelete);
if (std::chrono::system_clock::now() - start > 2min)
{
throw std::runtime_error("Timeout");
}
}
ASSERT_TRUE(this->requestDone_);