27#include "CoreMinimal.h"
73 void Clear(
const FString& ErrorMessage);
76 FName GenerateCallbackId();
78 TMap<FName, IHubConnection::FOnMethodCompletion> Callbacks;
79 FCriticalSection CallbacksLock;
81 FThreadSafeCounter CurrentId;
void Clear(const FString &ErrorMessage)
Removes all callbacks and invokes them with the specified error message.
Definition CallbackManager.cpp:81
bool InvokeCallback(FName InCallbackId, const FSignalRValue &InArguments, bool InRemoveCallback)
Invokes a callback with the specified arguments.
Definition CallbackManager.cpp:47
TTuple< FName, IHubConnection::FOnMethodCompletion & > RegisterCallback()
Registers a new callback and returns its ID along with a reference to the callback.
Definition CallbackManager.cpp:37
bool RemoveCallback(FName InCallbackId)
Removes a callback with the specified ID.
Definition CallbackManager.cpp:71
~FCallbackManager()
Definition CallbackManager.cpp:32
FCallbackManager()
Definition CallbackManager.cpp:28
Represents a value that can be sent to or received from a SignalR hub.
Definition SignalRValue.h:34