Hello,
Setting up a project and getting this error:
Here is my usage code for connecting/authenticating to the docker container I have running.
public:
ASSPlayerController() : Super()
{
NClientParameters parameters;
parameters.serverKey = “defaultkey”;
parameters.host = “127.0.0.1”;
parameters.port = 7350;
const NClientParameters& params = parameters;
NClientPtr client = createDefaultClient(NClientParameters());
this->NakamaClient = client;
}
NClientPtr NakamaClient;
virtual void Tick(float DeltaTime) override
{
Super::Tick(DeltaTime);
this->NakamaClient->tick();
}
UFUNCTION(BlueprintCallable,Category="Nakama")
void StartSession()
{
auto loginFailedCallback = [](const NError& error)
{
GEngine->AddOnScreenDebugMessage(-1, 100, FColor::Red, *FString::Printf(TEXT("Session Auth Failed %s"), toString(error).c_str()));
};
auto loginSucceededCallback = [](NSessionPtr session)
{
GEngine->AddOnScreenDebugMessage(-1, 100, FColor::Green, TEXT("Session Auth Success on Callback"));
};
std::string deviceId = "unique device id";
this->NakamaClient->authenticateDevice(deviceId,opt::nullopt,opt::nullopt,{},loginSucceededCallback,loginFailedCallback);
Any help is appreciated.