Skip to content

Fix RPCs via REST connections to Nakama outside of web#169

Open
ilmalte wants to merge 1 commit intoheroiclabs:mainfrom
ilmalte:fix/167-rpcs-rest-connections
Open

Fix RPCs via REST connections to Nakama outside of web#169
ilmalte wants to merge 1 commit intoheroiclabs:mainfrom
ilmalte:fix/167-rpcs-rest-connections

Conversation

@ilmalte
Copy link
Collaborator

@ilmalte ilmalte commented Feb 17, 2026

Refactor RPC payload handling and remove unused code.

In details:

  • Updated the NakamaGrpcClient to directly use the payload without preparation (payload encoding is only needed for REST and not for gRPC).
  • Simplified the preparePayload function to always encode the payload as JSON.
  • Deleted platform-specific stub files/logic (no longer used).
  • Added tests (covers issue RPCs via REST connections to Nakama do not work outside of web #167)

Refactor RPC payload handling and remove unused code.

In details:
- Updated the NakamaGrpcClient to directly use the payload without preparation (payload encoding is only needed for REST and not for gRPC).
- Simplified the preparePayload function to always encode the payload as JSON.
- Deleted platform-specific stub files/logic (no longer used).
- Added tests (covers issue heroiclabs#167)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RPCs via REST connections to Nakama do not work outside of web

2 participants