# Client Libraries

**URL:** https://forum.heroiclabs.com/c/client-library/19.md?page=1

[Latest](https://forum.heroiclabs.com/latest.md) · [Categories](https://forum.heroiclabs.com/categories.md) · [Tags](https://forum.heroiclabs.com/tags.md)

**Page:** 2

---

## [Can't join match using Godot WebSockets](https://forum.heroiclabs.com/t/cant-join-match-using-godot-websockets/6163)

<div class="topic-metadata">

**Author:** [@ADustyOldMuffin](https://forum.heroiclabs.com/u/ADustyOldMuffin)\
**Replies:** 2\
**Last updated:** [April 21, 2025, 2:41pm UTC](https://forum.heroiclabs.com/t/cant-join-match-using-godot-websockets/6163 "2025-04-21T14:41:17Z")

</div>

When following nakama-godot/README.md at master · heroiclabs/nakama-godot · GitHub Everything works up until joining the match in progress. I create a client, make a socket, and can send and receive messages fine as I c…

---

## [Pointer\_stringify is not defined at \_NKCreateSocket](https://forum.heroiclabs.com/t/pointer-stringify-is-not-defined-at-nkcreatesocket/5915)

<div class="topic-metadata">

**Author:** [@Dineshdev005](https://forum.heroiclabs.com/u/Dineshdev005)\
**Replies:** 2\
**Last updated:** [April 10, 2025, 12:13pm UTC](https://forum.heroiclabs.com/t/pointer-stringify-is-not-defined-at-nkcreatesocket/5915 "2025-04-10T12:13:04Z")

</div>

We’re experiencing an issue with the" Socket.ConnectAsync " method. my create socket call is working but when i try to connect socket shows error in webgl build " ReferenceError: Pointer\_stringify is not defined at \_NKCr…

---

## [C++ client bad alloc](https://forum.heroiclabs.com/t/c-client-bad-alloc/6124)

<div class="topic-metadata">

**Author:** [@dungeon2567](https://forum.heroiclabs.com/u/dungeon2567)\
**Replies:** 2\
**Last updated:** [March 28, 2025, 8:27am UTC](https://forum.heroiclabs.com/t/c-client-bad-alloc/6124 "2025-03-28T08:27:26Z")

</div>

Im getting a c++ bad alloc while trying to call Nakama::createDefaultClient

---

## [Connect to Nakama server with domain instead of Ip Address](https://forum.heroiclabs.com/t/connect-to-nakama-server-with-domain-instead-of-ip-address/6115)

<div class="topic-metadata">

**Author:** [@MahdiRashidi-Info](https://forum.heroiclabs.com/u/MahdiRashidi-Info)\
**Replies:** 3\
**Last updated:** [March 25, 2025, 2:15pm UTC](https://forum.heroiclabs.com/t/connect-to-nakama-server-with-domain-instead-of-ip-address/6115 "2025-03-25T14:15:59Z")

</div>

Hello, I am using the Nakama Unity SDK to connect to my server. Instead of specifying an IP address and port, I would like to connect directly using a domain name. However, I couldn’t find any relevant information in the…

---

## [Send MatchData From another server](https://forum.heroiclabs.com/t/send-matchdata-from-another-server/6106)

<div class="topic-metadata">

**Author:** [@eduardomoroni](https://forum.heroiclabs.com/u/eduardomoroni)\
**Replies:** 2\
**Last updated:** [March 21, 2025, 11:56am UTC](https://forum.heroiclabs.com/t/send-matchdata-from-another-server/6106 "2025-03-21T11:56:43Z")

</div>

I’m migrating my game engine to Nakama, and during migration I have to slowly move things over. It turns out I have some complex logics that depend on my database to execute. So I’d like to send matchData to an ongoing…

---

## [UE5 support of Nakama Plugin](https://forum.heroiclabs.com/t/ue5-support-of-nakama-plugin/6065)

<div class="topic-metadata">

**Author:** [@Albertcleetus](https://forum.heroiclabs.com/u/Albertcleetus)\
**Replies:** 2\
**Last updated:** [March 10, 2025, 5:50am UTC](https://forum.heroiclabs.com/t/ue5-support-of-nakama-plugin/6065 "2025-03-10T05:50:42Z")

</div>

Is this Nakama plugin 2.10.0 version support for Ue5.5.3 ? Because at the compile it shows some nakama error from NakamTests folder.

---

## [Custom Nakama Web Client](https://forum.heroiclabs.com/t/custom-nakama-web-client/5989)

<div class="topic-metadata">

**Author:** [@EarthAdam](https://forum.heroiclabs.com/u/EarthAdam)\
**Replies:** 1\
**Last updated:** [February 3, 2025, 2:40pm UTC](https://forum.heroiclabs.com/t/custom-nakama-web-client/5989 "2025-02-03T14:40:24Z")

</div>

I’ve had a Nakama game server running on a Postgres database for years now. I want to integrate 3rd-party integrations into my app that I built in Unity (i.e. Garmin), and I want to do this via a web-portal since Unity i…

---

## ["Intercepted a disabled resource" when attempting to Authenticate](https://forum.heroiclabs.com/t/intercepted-a-disabled-resource-when-attempting-to-authenticate/5971)

<div class="topic-metadata">

**Author:** [@TheRealFaruhaan](https://forum.heroiclabs.com/u/TheRealFaruhaan)\
**Replies:** 1\
**Last updated:** [January 27, 2025, 11:40am UTC](https://forum.heroiclabs.com/t/intercepted-a-disabled-resource-when-attempting-to-authenticate/5971 "2025-01-27T11:40:12Z")

</div>

Hello. I am new to nakama. I have been trying to get a the server authentication working for the past 3 days now. I have been stuck at the same error. I have tried running the server locally and as well as on the interne…

---

## [Why events dont work the same on different clients in the nakama clients](https://forum.heroiclabs.com/t/why-events-dont-work-the-same-on-different-clients-in-the-nakama-clients/5938)

<div class="topic-metadata">

**Author:** [@virtouso](https://forum.heroiclabs.com/u/virtouso)\
**Replies:** 8\
**Last updated:** [January 21, 2025, 2:30pm UTC](https://forum.heroiclabs.com/t/why-events-dont-work-the-same-on-different-clients-in-the-nakama-clients/5938 "2025-01-21T14:30:56Z")

</div>

on unity Client there Is Event called “OnPressenceUpdate”. When match is created and the presence is updated, one client receives on single Event with added 2 players to the match but another receives 2 events that on ea…

---

## [How can a Godot server verify the authenticity of a client connected to a Nakama server?](https://forum.heroiclabs.com/t/how-can-a-godot-server-verify-the-authenticity-of-a-client-connected-to-a-nakama-server/5911)

<div class="topic-metadata">

**Author:** [@Serh](https://forum.heroiclabs.com/u/Serh)\
**Replies:** 6\
**Last updated:** [January 8, 2025, 2:52pm UTC](https://forum.heroiclabs.com/t/how-can-a-godot-server-verify-the-authenticity-of-a-client-connected-to-a-nakama-server/5911 "2025-01-08T14:52:53Z")

</div>

There is a Godot server and clients from the same project code with Nakama Godot SDK. The Godot server and clients connect to the Nakama server (using any authentication method). The clients also connect to the Godot ser…

---

## [Question about using two Nakama sockets](https://forum.heroiclabs.com/t/question-about-using-two-nakama-sockets/5916)

<div class="topic-metadata">

**Author:** [@amhakunrealdev](https://forum.heroiclabs.com/u/amhakunrealdev)\
**Replies:** 1\
**Last updated:** [January 7, 2025, 12:19pm UTC](https://forum.heroiclabs.com/t/question-about-using-two-nakama-sockets/5916 "2025-01-07T12:19:55Z")

</div>

Hi, I have a question about my Nakama unreal setup. Would it be a good idea to use two Nakama sockets to handle separate tasks, such as Chat and Notifications? Or is one socket already enough to handle both systems for b…

---

## [Resolving JSON Parsing Errors in Nakama Custom Authentication Introduction](https://forum.heroiclabs.com/t/resolving-json-parsing-errors-in-nakama-custom-authentication-introduction/5871)

<div class="topic-metadata">

**Author:** [@mahanshAdtiya](https://forum.heroiclabs.com/u/mahanshAdtiya)\
**Replies:** 1\
**Last updated:** [January 7, 2025, 11:39am UTC](https://forum.heroiclabs.com/t/resolving-json-parsing-errors-in-nakama-custom-authentication-introduction/5871 "2025-01-07T11:39:17Z")

</div>

The Problem The Nakama client sends a request to the server to authenticate a user. The server responds with a JWT token, but the Nakama client throws a parsing error. The error indicates that the response from the serv…

---

## [Fetch Leaderboard Entry Count](https://forum.heroiclabs.com/t/fetch-leaderboard-entry-count/5790)

<div class="topic-metadata">

**Author:** [@SarahNicole](https://forum.heroiclabs.com/u/SarahNicole)\
**Replies:** 2\
**Last updated:** [December 18, 2024, 6:04pm UTC](https://forum.heroiclabs.com/t/fetch-leaderboard-entry-count/5790 "2024-12-18T18:04:31Z")

</div>

Hello! I am using Nakama 3.24.2-r2 on Heroic Cloud. The unity SDK version is 3.14 and we’re still having issues using the RankCount property for the IApiLeaderboardRecordList interface. It is only returning null, even t…

---

## [ListChannelMessagesAsync returns empty array after sending a direct chat message](https://forum.heroiclabs.com/t/listchannelmessagesasync-returns-empty-array-after-sending-a-direct-chat-message/5808)

<div class="topic-metadata">

**Author:** [@vladislav-chunikhin](https://forum.heroiclabs.com/u/vladislav-chunikhin)\
**Replies:** 2\
**Last updated:** [November 15, 2024, 11:43am UTC](https://forum.heroiclabs.com/t/listchannelmessagesasync-returns-empty-array-after-sending-a-direct-chat-message/5808 "2024-11-15T11:43:14Z")

</div>

Details: The WriteChatMessageAsync method successfully sends a message to a direct chat. The server responds correctly with details such as message\_id and channel\_id. However, when calling ListChannelMessagesAsync for t…

---

## [Nakama returns "Match not found"](https://forum.heroiclabs.com/t/nakama-returns-match-not-found/5800)

<div class="topic-metadata">

**Author:** [@virtouso](https://forum.heroiclabs.com/u/virtouso)\
**Replies:** 1\
**Last updated:** [November 14, 2024, 10:02am UTC](https://forum.heroiclabs.com/t/nakama-returns-match-not-found/5800 "2024-11-14T10:02:29Z")

</div>

its a local nakama server. i try to connect to the create match with matchId i create server with this: public async void CreateServer(string matchName) { \_socket = Socket.From(\_client); //…

---

## [Send invite to friends from js client so they can receive party ID and join](https://forum.heroiclabs.com/t/send-invite-to-friends-from-js-client-so-they-can-receive-party-id-and-join/5738)

<div class="topic-metadata">

**Author:** [@Laguigue](https://forum.heroiclabs.com/u/Laguigue)\
**Replies:** 6\
**Last updated:** [November 3, 2024, 10:12am UTC](https://forum.heroiclabs.com/t/send-invite-to-friends-from-js-client-so-they-can-receive-party-id-and-join/5738 "2024-11-03T10:12:28Z")

</div>

Hello, i have trouble understanding how to send notifications to friends in nakama-js. Here is my usecase: My user is friend with another one. My user creates a party, and send notification to his friends with the part…

---

## [Flutter/dart client can't negotiate digital ocean load balancers](https://forum.heroiclabs.com/t/flutter-dart-client-cant-negotiate-digital-ocean-load-balancers/5497)

<div class="topic-metadata">

**Author:** [@oscargoldman](https://forum.heroiclabs.com/u/oscargoldman)\
**Replies:** 4\
**Last updated:** [October 23, 2024, 7:36pm UTC](https://forum.heroiclabs.com/t/flutter-dart-client-cant-negotiate-digital-ocean-load-balancers/5497 "2024-10-23T19:36:23Z")

</div>

after successfully developing a Unity game using nakama hosted on Digital Ocean, I’m working on a flutter application and wanted to use Nakama as the backend, mainly for authentication, account management, and storage. I…

---

## [Integrating gRPC on unity client side](https://forum.heroiclabs.com/t/integrating-grpc-on-unity-client-side/5670)

<div class="topic-metadata">

**Author:** [@bilalmirzams](https://forum.heroiclabs.com/u/bilalmirzams)\
**Replies:** 0\
**Last updated:** [September 24, 2024, 12:36pm UTC](https://forum.heroiclabs.com/t/integrating-grpc-on-unity-client-side/5670 "2024-09-24T12:36:20Z")

</div>

Hello, I have integrated Nakama with Unity and I wanted to use gRPC, but couldn’t fine anything in documentation or even on this forum regarding integration gRPC on client side. Hello I am developing a multiplayer game…

---

## [UpdateAchievementsAsync usage unclear](https://forum.heroiclabs.com/t/updateachievementsasync-usage-unclear/5662)

<div class="topic-metadata">

**Author:** [@jell-o-fishi](https://forum.heroiclabs.com/u/jell-o-fishi)\
**Replies:** 1\
**Last updated:** [September 23, 2024, 8:22am UTC](https://forum.heroiclabs.com/t/updateachievementsasync-usage-unclear/5662 "2024-09-23T08:22:05Z")

</div>

I am confused about the existence of UpdateAchievementsAsync. from the signature, it accepts a session, indicating to me that this method is to be called by the user’s client. This is also what i understood from the samp…

---

## [Custom placement based on what's in the wallet not tied to a specific reward in economy](https://forum.heroiclabs.com/t/custom-placement-based-on-whats-in-the-wallet-not-tied-to-a-specific-reward-in-economy/5650)

<div class="topic-metadata">

**Author:** [@SamFashionLeague](https://forum.heroiclabs.com/u/SamFashionLeague)\
**Replies:** 5\
**Last updated:** [September 19, 2024, 11:54am UTC](https://forum.heroiclabs.com/t/custom-placement-based-on-whats-in-the-wallet-not-tied-to-a-specific-reward-in-economy/5650 "2024-09-19T11:54:31Z")

</div>

Hi @novabyte, Based on this Energy system in Unity I am experimenting with rewarded ads for doubling your last given reward. For example; a player clicks on the classic “double reward” button after a finished level. Th…

---

## [Require example of logging in from a unity server to nakama](https://forum.heroiclabs.com/t/require-example-of-logging-in-from-a-unity-server-to-nakama/5651)

<div class="topic-metadata">

**Author:** [@jell-o-fishi](https://forum.heroiclabs.com/u/jell-o-fishi)\
**Replies:** 3\
**Last updated:** [September 18, 2024, 4:49pm UTC](https://forum.heroiclabs.com/t/require-example-of-logging-in-from-a-unity-server-to-nakama/5651 "2024-09-18T16:49:53Z")

</div>

I manage to login from the unity client to nakama with AuthenticateDeviceAsync. Currently i am using the same authentication method from the server. The documentation states that server logins will not have a user ID, …

---

## [Removing matchmaking ticket isn't being updated on players other than party leader](https://forum.heroiclabs.com/t/removing-matchmaking-ticket-isnt-being-updated-on-players-other-than-party-leader/5628)

<div class="topic-metadata">

**Author:** [@MetaCan](https://forum.heroiclabs.com/u/MetaCan)\
**Replies:** 1\
**Last updated:** [September 16, 2024, 10:43am UTC](https://forum.heroiclabs.com/t/removing-matchmaking-ticket-isnt-being-updated-on-players-other-than-party-leader/5628 "2024-09-16T10:43:56Z")

</div>

Versions: Nakama v3.23.0-r2-mc+11a95d5, Unreal Plugin v2.10 I’m using parties to create matchmaking tickets and make players play together. When NakamaRealtimeClient::AddMatchmakerParty is called, players in party rece…

---

## [Steam friend import ends up with 0 friends](https://forum.heroiclabs.com/t/steam-friend-import-ends-up-with-0-friends/5637)

<div class="topic-metadata">

**Author:** [@MetaCan](https://forum.heroiclabs.com/u/MetaCan)\
**Replies:** 1\
**Last updated:** [September 16, 2024, 8:01am UTC](https://forum.heroiclabs.com/t/steam-friend-import-ends-up-with-0-friends/5637 "2024-09-16T08:01:17Z")

</div>

Versions: Nakama v3.23.0-r2-mc+11a95d5, Unreal Plugin v2.10 We’re currently testing our game as developers (~15 accounts) and 2 of the accounts somehow can’t import steam friends. While we’re all friends on steam and s…

---

## [Ue5 function issue](https://forum.heroiclabs.com/t/ue5-function-issue/5604)

<div class="topic-metadata">

**Author:** [@Albertcleetus](https://forum.heroiclabs.com/u/Albertcleetus)\
**Replies:** 6\
**Last updated:** [September 14, 2024, 12:30pm UTC](https://forum.heroiclabs.com/t/ue5-function-issue/5604 "2024-09-14T12:30:24Z")

</div>

Instead of this, what will i use.?

---

## [Sharing: UE5 RpcUpdateMetadata](https://forum.heroiclabs.com/t/sharing-ue5-rpcupdatemetadata/5635)

<div class="topic-metadata">

**Author:** [@shadowfinderstudios](https://forum.heroiclabs.com/u/shadowfinderstudios)\
**Replies:** 0\
**Last updated:** [September 13, 2024, 9:18pm UTC](https://forum.heroiclabs.com/t/sharing-ue5-rpcupdatemetadata/5635 "2024-09-13T21:18:12Z")

</div>

In case anyone else needs to update metadata for the account in UE blueprints, I managed it using VaRest: And, the server code (Typescript) file update\_metadata.ts: let rpcUpdateMetadata: nkruntime.RpcFunction = func…

---

## [C++ SDK exceptions on createDefaultClient and rtClient-\>tick()](https://forum.heroiclabs.com/t/c-sdk-exceptions-on-createdefaultclient-and-rtclient-tick/5474)

<div class="topic-metadata">

**Author:** [@rumichi](https://forum.heroiclabs.com/u/rumichi)\
**Replies:** 1\
**Last updated:** [September 5, 2024, 4:05pm UTC](https://forum.heroiclabs.com/t/c-sdk-exceptions-on-createdefaultclient-and-rtclient-tick/5474 "2024-09-05T16:05:50Z")

</div>

Nakama Server version 3.22.0+4a4c53d7 nakama cpp version: \[v2.8.5\] When I run nakama-cpp/example/main.cpp in a windows environment different parts crash in both releasebuild and debugbuild. In releasebuild auto cli…

---

## [Missing rank information for specific user\_id while using ListLeaderboardRecords](https://forum.heroiclabs.com/t/missing-rank-information-for-specific-user-id-while-using-listleaderboardrecords/5560)

<div class="topic-metadata">

**Author:** [@0xbeefbeef](https://forum.heroiclabs.com/u/0xbeefbeef)\
**Replies:** 2\
**Last updated:** [August 20, 2024, 2:11pm UTC](https://forum.heroiclabs.com/t/missing-rank-information-for-specific-user-id-while-using-listleaderboardrecords/5560 "2024-08-20T14:11:19Z")

</div>

I have used ListLeaderboardRecords and ListLeaderboardRecordsAroundOwner to get information about the current users rank in a specific leaderboard. That worked fine in Nakama 3.13 as the rank was part of the result (e.g.…

---

## [Example how to bundle js-client to single js?](https://forum.heroiclabs.com/t/example-how-to-bundle-js-client-to-single-js/5562)

<div class="topic-metadata">

**Author:** [@newbidoo](https://forum.heroiclabs.com/u/newbidoo)\
**Replies:** 1\
**Last updated:** [August 15, 2024, 7:44pm UTC](https://forum.heroiclabs.com/t/example-how-to-bundle-js-client-to-single-js/5562 "2024-08-15T19:44:29Z")

</div>

I intend to make browser game and connect to nakama-server with js-client. I try to bundle my code to single js file. Currently with Parcel. What is confusing to me is that in my dist/module.js it still imports Buffer …

---

## [Unity Sdk - client.NewSocket(useMainThread) is no more usable. How can I set it to force use the mainThread?](https://forum.heroiclabs.com/t/unity-sdk-client-newsocket-usemainthread-is-no-more-usable-how-can-i-set-it-to-force-use-the-mainthread/5553)

<div class="topic-metadata">

**Author:** [@yusuf](https://forum.heroiclabs.com/u/yusuf)\
**Replies:** 1\
**Last updated:** [August 13, 2024, 8:30am UTC](https://forum.heroiclabs.com/t/unity-sdk-client-newsocket-usemainthread-is-no-more-usable-how-can-i-set-it-to-force-use-the-mainthread/5553 "2024-08-13T08:30:06Z")

</div>

I have downloaded the new version of Nakama Unity SDK. As I see, the socket opening process changed. How can I set the main thread usage parameter using the new method? Should I downgrade?

---

## [Read tcp .... i/o timeout](https://forum.heroiclabs.com/t/read-tcp-i-o-timeout/5554)

<div class="topic-metadata">

**Author:** [@hxw956631920](https://forum.heroiclabs.com/u/hxw956631920)\
**Replies:** 0\
**Last updated:** [August 12, 2024, 4:49pm UTC](https://forum.heroiclabs.com/t/read-tcp-i-o-timeout/5554 "2024-08-12T16:49:20Z")

</div>

I encountered the following errors. I tried to discard the modified code, but there was no problem before： {“level”:“debug”,“ts”:“2024-08-12T16:30:30.522Z”,“caller”:“server/session\_ws.go:205”,“msg”:“Error reading messag…

[Previous page](https://forum.heroiclabs.com/c/client-library/19.md)

[Next page](https://forum.heroiclabs.com/c/client-library/19.md?page=2)
