Generate unique ID for requestID

This commit is contained in:
Ralph Wessel
2024-08-30 13:37:00 +01:00
parent 2911afa3e7
commit 48d2e11194
@@ -92,7 +92,7 @@ void BrowserBridge::sendEvent(speckle::utility::String eventName, std::unique_pt
return;
}
//Generate a custom requestID for the data
String requestID{Guid64{} + String{"_"} + eventName};
String requestID{Guid64{true} + String{"_"} + eventName};
cacheResult(std::move(data), requestID, false);
//Send a notification using the event name and request ID to signal that the data is available
m_portal->execute(getName() + ".emitResponseReady('" + eventName + "','" + requestID + "')");