# Can the Nakama Client SDK Use Protobuf Directly Instead of JSON REST API?

**URL:** <https://forum.heroiclabs.com/t/can-the-nakama-client-sdk-use-protobuf-directly-instead-of-json-rest-api/4856>\
**Category:** Client Libraries\
**Created:** [January 10, 2024, 3:59am UTC](https://forum.heroiclabs.com/t/can-the-nakama-client-sdk-use-protobuf-directly-instead-of-json-rest-api/4856 "2024-01-10T03:59:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiangben](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/jiangben/32/1825_2.png) [@jiangben](https://forum.heroiclabs.com/u/jiangben)\
**Post date:** [January 10, 2024, 3:59am UTC](https://forum.heroiclabs.com/t/can-the-nakama-client-sdk-use-protobuf-directly-instead-of-json-rest-api/4856/1 "2024-01-10T03:59:34Z")

</div>

Hello,

I’ve been exploring the Nakama Client SDK and noticed that it uses a JSON REST API for sending requests. My question is, is it possible for the client to directly use Protobuf instead? I’ve looked into the Nakama .NET SDK and observed that it communicates using JSON data on port 7350. If I wanted to switch to using Protobuf on port 7349, how should I modify the .NET SDK to accommodate this change?

Thank you for your assistance.

---

<div class="post-metadata">

**Author:** ![lugehorsam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/lugehorsam/32/314_2.png) [@lugehorsam](https://forum.heroiclabs.com/u/lugehorsam)\
**Post date:** [January 11, 2024, 9:37pm UTC](https://forum.heroiclabs.com/t/can-the-nakama-client-sdk-use-protobuf-directly-instead-of-json-rest-api/4856/2 "2024-01-11T21:37:10Z")

</div>

Hey jiangben there is currently an experimental PR ([Protobuf Support for .NET Socket by lugehorsam · Pull Request #47 · heroiclabs/nakama-dotnet · GitHub](https://github.com/heroiclabs/nakama-dotnet/pull/47)) up for this, but adding protobuf support to the Unity client isn’t an active priority at the moment. For a large majority of games, the JSON-based interface will be sufficient. Is this something you just wanted to experiment with or is there a reason specific to your game?

---

<div class="post-metadata">

**Author:** ![beredis](https://avatars.discourse-cdn.com/v4/letter/b/34f0e0/32.png) [@beredis](https://forum.heroiclabs.com/u/beredis)\
**Post date:** [May 10, 2024, 10:48pm UTC](https://forum.heroiclabs.com/t/can-the-nakama-client-sdk-use-protobuf-directly-instead-of-json-rest-api/4856/4 "2024-05-10T22:48:50Z")

</div>

The Nakama Client SDK does indeed primarily use a JSON REST API for communication. However, it is possible for the client to use Protobuf as well. Nakama supports Protobuf with its GRPC API, and there has been an experimental pull request for adding Protobuf support to the .NET Socket. [Autodesk AutoCAD 2020 top deal from proCADis](https://procadis.com/version/autodesk-autocad-2020/). This means that while the main communication method is JSON, there is potential for Protobuf support.

---

<div class="post-metadata">

**Author:** ![jiangben](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/jiangben/32/1825_2.png) [@jiangben](https://forum.heroiclabs.com/u/jiangben)\
**Post date:** [October 27, 2025, 9:20am UTC](https://forum.heroiclabs.com/t/can-the-nakama-client-sdk-use-protobuf-directly-instead-of-json-rest-api/4856/5 "2025-10-27T09:20:02Z")

</div>

this is a long time。。。i want to change protobuf becasue i use nakama game server as a storage server。 json is easy to cracked than protobuf。
