Skip to content

How do I get results from rpc calls? #48

Closed Answered by nteko
nteko asked this question in Q&A
Discussion options

You must be logged in to vote

I found out how to get a result from RPC calling.

You need to modify "nakama_websocket_client.dart" ( from line # 185 )

if (waitingFuture is Completer<rtpb.Match>) {
          return waitingFuture.complete(receivedEnvelope.match);
        } else if (waitingFuture is Completer<rtpb.MatchmakerTicket>) {
          return waitingFuture.complete(receivedEnvelope.matchmakerTicket);
        } else if (waitingFuture is Completer<rtpb.Status>) {
          return waitingFuture.complete(receivedEnvelope.status);
        } else if (waitingFuture is Completer<rtpb.Channel>) {
          return waitingFuture.complete(receivedEnvelope.channel);
        } else if (waitingFuture is Completer<rtpb.ChannelMe…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nteko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant