API Reference

UWebSockConnection.SendMessage

SendMessage is a BlueprintCallable function that sends an FString payload using an existing UWebSockConnection


Usage

	/**
	 * Sends an FString message through this WebSocket
	 * @param InString FString to send
	 */
	UFUNCTION(BlueprintCallable, Category="WebSock")
	void SendMessage(const FString& InString);

Blueprints

Sending an FString payload that was serialised from a USTRUCT

C++

If using C++ you can use the native equivalent UWebSockConnection::Send<T>

	/**
	 * Template Send<T>
	 * @tparam T USTRUCT type
	 * @param In the USTRUCT itself
	 */
	template <typename T = UScriptStruct>
	void Send(T& In)
Previous
UWebSockLib.FromJSON
© Hench Technology Ltd