Ruzihm / STOMPWebSocketsPlugin

1 stars 1 forks source link

Send binary fail #4

Open Katletos opened 3 months ago

Katletos commented 3 months ago

My java backend raised a exception.

1007 indicates that an endpoint is terminating the connection because it has received data within a message that was not consistent with the type of the message (e.g., non-UTF-8 [RFC3629] data within a text message).

But another client works. I think there is an issue with StompClient->Send()

void USTOMPWebSocketClient::SendBinary(const FString& Destination, const TArray<uint8>& Body, const TMap<FName, FString>& Header, 
    const FSTOMPRequestCompleted& CompletionCallback)
{
    StompClient->Send(Destination, Body, Header,
        FStompRequestCompleted::CreateLambda([CompletionCallback](bool bSuccess, const FString& Error)->void {
            CompletionCallback.ExecuteIfBound(bSuccess, Error);
        })
    );
}
Katletos commented 3 months ago

Ok, found issue in unreal engine stomp subsystem. I will make pr soon

Katletos commented 3 months ago

image image image