Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send binary fail #4

Open
Katletos opened this issue Jun 14, 2024 · 2 comments
Open

Send binary fail #4

Katletos opened this issue Jun 14, 2024 · 2 comments

Comments

@Katletos
Copy link
Contributor

Katletos commented Jun 14, 2024

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
Copy link
Contributor Author

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

@Katletos
Copy link
Contributor Author

image
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant