Is it possible to use an RPC call to access the state (interface{})
(read-only) of a server-authoritative match if the matchId is known? If yes, what would be the recommended approach to achieve this?
Hello @surajTLabs,
Can you elaborate a bit on why you need to read the match state from an RPC?
I am trying to add bots with some third party sdk, which can access data at runtime from webhook only. But matchmaking and bot decision is implemented on Nakama side only. So via webhook RPC I can fetch assigned bot details using match id…
You could technically access it with:
nk.match_get
But only while match is active, and with combination of rpc it could work. This kind of approach i am using for reconnection process if user denies to reconnect to match for some reason, so he loses rewards and gets penality.
1 Like