|
| FHubConnection (const FString &InUrl, const TMap< FString, FString > &InHeaders) |
| Creates a new connection to a SignalR hub.
|
|
virtual | ~FHubConnection () |
| Destructor for the hub connection.
|
|
virtual void | Start () override |
| Starts the hub connection.
|
|
virtual void | Stop () override |
| Stops the hub connection.
|
|
virtual FORCEINLINE FOnHubConnectedEvent & | OnConnected () override |
| Gets the event that is triggered when the hub connection is established.
|
|
virtual FORCEINLINE FOnHubConnectionErrorEvent & | OnConnectionError () override |
| Gets the event that is triggered when a hub connection error occurs.
|
|
virtual FORCEINLINE FHubConnectionClosedEvent & | OnClosed () override |
| Gets the event that is triggered when the hub connection is closed.
|
|
virtual FOnMethodInvocation & | On (const FString &EventName) override |
| Registers a handler for a hub method invocation.
|
|
virtual FOnMethodCompletion & | Invoke (const FString &EventName, const TArray< FSignalRValue > &InArguments=TArray< FSignalRValue >()) override |
| Invokes a hub method with the specified arguments and waits for the result.
|
|
virtual void | Send (const FString &InEventName, const TArray< FSignalRValue > &InArguments=TArray< FSignalRValue >()) override |
| Sends a hub method invocation with the specified arguments without waiting for a result.
|
|
virtual void | Tick (float DeltaTime) override |
| Ticks the hub connection, used for periodic tasks such as sending pings.
|
|
TStatId | GetStatId () const override |
| Gets the stat ID for this tickable object.
|
|
virtual ETickableTickType | GetTickableTickType () const override |
| Gets the tickable tick type for this object.
|
|
virtual bool | IsTickable () const override |
| Determines if this object is tickable.
|
|
virtual bool | IsTickableInEditor () const override |
| Determines if this object is tickable in the editor.
|
|
virtual bool | IsTickableWhenPaused () const override |
| Determines if this object is tickable when the game is paused.
|
|
| DECLARE_EVENT (IHubConnection, FOnHubConnectedEvent) |
| Delegate called when a connection has been established successfully.
|
|
| DECLARE_EVENT_OneParam (IHubConnection, FOnHubConnectionErrorEvent, const FString &) |
| Delegate called when a connection could not be established.
|
|
| DECLARE_EVENT (IHubConnection, FHubConnectionClosedEvent) |
| Delegate called when a web socket connection has been closed.
|
|
| DECLARE_DELEGATE_OneParam (FOnMethodInvocation, const TArray< FSignalRValue > &) |
|
| DECLARE_DELEGATE_OneParam (FOnMethodCompletion, const FSignalRInvokeResult &) |
|
template<typename... ArgTypes> |
FORCEINLINE FOnMethodCompletion & | Invoke (const FString &EventName, ArgTypes... Arguments) |
| Templated version of Invoke that converts arguments to FSignalRValue automatically.
|
|
template<typename... ArgTypes> |
FORCEINLINE void | Send (const FString &EventName, ArgTypes... Arguments) |
| Templated version of Send that converts arguments to FSignalRValue automatically.
|
|
Implements a connection to a SignalR hub.
Provides methods to start and stop the connection, invoke hub methods, and register handlers for hub method invocations.