UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IStompClient Class Referenceabstract

#include <IStompClient.h>

Public Member Functions

virtual ~IStompClient ()
 
virtual void Connect (const FStompHeader &Header=FStompHeader())=0
 
virtual void Disconnect (const FStompHeader &Header=FStompHeader())=0
 
virtual bool IsConnected () const =0
 
virtual FStompSubscriptionId Subscribe (const FString &Destination, const FStompSubscriptionEvent &EventCallback, const FStompRequestCompleted &CompletionCallback=FStompRequestCompleted())=0
 
virtual void Unsubscribe (FStompSubscriptionId Subscription, const FStompRequestCompleted &CompletionCallback=FStompRequestCompleted())=0
 
virtual void Send (const FString &Destination, const FString &Body, const FStompHeader &Header=FStompHeader(), const FStompRequestCompleted &CompletionCallback=FStompRequestCompleted())
 
virtual void Send (const FString &Destination, const FStompBuffer &Body, const FStompHeader &Header=FStompHeader(), const FStompRequestCompleted &CompletionCallback=FStompRequestCompleted())=0
 
virtual void Send (const FString &Destination, const FString &Body, const FStompRequestCompleted &CompletionCallback)
 
virtual void Send (const FString &Destination, const FStompBuffer &Body, const FStompRequestCompleted &CompletionCallback)
 
 DECLARE_EVENT_ThreeParams (IStompClient, FStompClientConnectedEvent, const FString &, const FString &, const FString &)
 
virtual FStompClientConnectedEventOnConnected ()=0
 
 DECLARE_EVENT_OneParam (IStompClient, FStompClientConnectionErrorEvent, const FString &)
 
virtual FStompClientConnectionErrorEventOnConnectionError ()=0
 
 DECLARE_EVENT_OneParam (IStompClient, FStompClientErrorEvent, const FString &)
 
virtual FStompClientErrorEventOnError ()=0
 
 DECLARE_EVENT_OneParam (IStompClient, FStompClientClosedEvent, const FString &)
 
virtual FStompClientClosedEventOnClosed ()=0
 

Constructor & Destructor Documentation

◆ ~IStompClient()

virtual IStompClient::~IStompClient ( )
inlinevirtual

Member Function Documentation

◆ Connect()

virtual void IStompClient::Connect ( const FStompHeader Header = FStompHeader())
pure virtual

Initiate a client connection to the server. Use this after setting up event handlers or to reconnect after connection errors.

Parameters
Headercustom headers to send with the initial CONNECT command.

◆ DECLARE_EVENT_OneParam() [1/3]

IStompClient::DECLARE_EVENT_OneParam ( IStompClient  ,
FStompClientClosedEvent  ,
const FString &   
)

Delegate called when a connection has been closed.

◆ DECLARE_EVENT_OneParam() [2/3]

IStompClient::DECLARE_EVENT_OneParam ( IStompClient  ,
FStompClientConnectionErrorEvent  ,
const FString &   
)

Delegate called when a connection could not be established.

◆ DECLARE_EVENT_OneParam() [3/3]

IStompClient::DECLARE_EVENT_OneParam ( IStompClient  ,
FStompClientErrorEvent  ,
const FString &   
)

Delegate called when an error is received from the server.

◆ DECLARE_EVENT_ThreeParams()

IStompClient::DECLARE_EVENT_ThreeParams ( IStompClient  ,
FStompClientConnectedEvent  ,
const FString &  ,
const FString &  ,
const FString &   
)

Delegate called when a connection been established successfully.

Parameters
ProtocoVersionThe protocol version supported by the server
SessionIdA unique connection identifier. Can be empty depending on the server implementation.
ServerStringA server version string if returned from the server, otherwise empty string.

◆ Disconnect()

virtual void IStompClient::Disconnect ( const FStompHeader Header = FStompHeader())
pure virtual

Disconnect from the server.

Parameters
Headercustom headers to send with the DISCONNECT command.

◆ IsConnected()

virtual bool IStompClient::IsConnected ( ) const
pure virtual

Inquire if this instance is connected to a server.

◆ OnClosed()

virtual FStompClientClosedEvent & IStompClient::OnClosed ( )
pure virtual

◆ OnConnected()

virtual FStompClientConnectedEvent & IStompClient::OnConnected ( )
pure virtual

◆ OnConnectionError()

virtual FStompClientConnectionErrorEvent & IStompClient::OnConnectionError ( )
pure virtual

◆ OnError()

virtual FStompClientErrorEvent & IStompClient::OnError ( )
pure virtual

◆ Send() [1/4]

virtual void IStompClient::Send ( const FString &  Destination,
const FStompBuffer Body,
const FStompHeader Header = FStompHeader(),
const FStompRequestCompleted CompletionCallback = FStompRequestCompleted() 
)
pure virtual

Emit an event to a destination

Parameters
DestinationThe destination endoint of the event.
BodyThe event body as a binary blob.
HeaderCustom header values to send along with the data.
CompletionCallbackDelegate called when the request has been acknowledged by the server or if there is an error.

◆ Send() [2/4]

virtual void IStompClient::Send ( const FString &  Destination,
const FStompBuffer Body,
const FStompRequestCompleted CompletionCallback 
)
inlinevirtual

◆ Send() [3/4]

virtual void IStompClient::Send ( const FString &  Destination,
const FString &  Body,
const FStompHeader Header = FStompHeader(),
const FStompRequestCompleted CompletionCallback = FStompRequestCompleted() 
)
inlinevirtual

Emit an event to a destination

Parameters
DestinationThe destination endoint of the event.
BodyThe event body as string. It will be encoded as UTF8 before sending to the Stomp server.
HeaderCustom header values to send along with the data.
CompletionCallbackDelegate called when the request has been acknowledged by the server or if there is an error.

◆ Send() [4/4]

virtual void IStompClient::Send ( const FString &  Destination,
const FString &  Body,
const FStompRequestCompleted CompletionCallback 
)
inlinevirtual

◆ Subscribe()

virtual FStompSubscriptionId IStompClient::Subscribe ( const FString &  Destination,
const FStompSubscriptionEvent EventCallback,
const FStompRequestCompleted CompletionCallback = FStompRequestCompleted() 
)
pure virtual

Subscribe to an event

Parameters
DestinationDestination endpoint to subscribe to.
EventCallbackDelegate called when events arrive on this subscription.
CompletionCallbackDelegate called when the request has been acknowledged by the server or if there is an error.
Returns
a handle to the active subscription. Can be passed to Unsubscribe to unsubscribe from the end point.

◆ Unsubscribe()

virtual void IStompClient::Unsubscribe ( FStompSubscriptionId  Subscription,
const FStompRequestCompleted CompletionCallback = FStompRequestCompleted() 
)
pure virtual

Unsubscribe from an event

Parameters
SubscriptionThe id returned from the call to Subscribe.
CompletionCallbackDelegate called when the request has been acknowledged by the server or if there is an error.
ResponseCallbackDelegate called when the request has been completed.

The documentation for this class was generated from the following file: