API Reference

UWebSockConnection.K2_HandleRecvMessage

K2_HandleRecvMessage is a BlueprintNativeEvent that is implemented by a UWebSockConnection subclass in C++ or Blueprints to handle incoming payloads


Usage

	/**
	 * Can be overriden in inherited classes to handle 'Recv Message' events
	 * @param Msg the FString message we received
	 */
	UFUNCTION(BlueprintNativeEvent, Category="WebSock", meta = (DisplayName = "Socket Recv Message"))
	void K2_HandleRecvMessage(const FString& Msg);

Blueprints

Receiving a payload via K2_HandleRecvMessage using a Blueprint subclass

C++

If inheriting in C++ you can override the native equivalent K2_HandleRecvMessage_Implementation

void UWebSockConnectionSubClass::K2_HandleRecvMessage_Implementation
(const FString& Msg)
{
    // your WebSock powered code here
}
Previous
UWebSockConnection.SendMessage
© Hench Technology Ltd