Is there a limit to FString as a URL? I’m trying to open this websocket connection to my AWS endpoint and I wanna send a JWT as URL parameter, but I can see that it gets cut off at roughly 400 characters.
const FString ServerURL = TEXT("wss://ws.endpoint.com/?Auth=JWT_1000_characters...."); const FString ServerProtocol = TEXT("wss"); TMap<FString, FString> Headers; Headers.Add(TEXT("Upgrade"), TEXT("websocket")); Headers.Add(TEXT("Connection"), TEXT("upgrade")); TSharedPtr<IWebSocket> Socket = FWebSocketsModule::Get().CreateWebSocket(ServerURL, ServerProtocol, Headers);
I know that the string gets cut off, because I can see the token in my endpoint log but most of it is missing.
Putting the token inside a header is an option (I didnt test yet) but it would require a rework on the target and other applications using the same target, so I would prefer not doing that.