Skip to content

Send binary fail  #4

@Katletos

Description

@Katletos

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);
		})
	);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions