How do you use OperationResponse in OnWebRpcResponse?

Hello!

I'm following along the MemoyGame example and the handling for WebRpc parses the `response.Paramaters` as a `Dictionary`. In PUN, the `Parameters` are a `Dictionary` - how is the `byte` used for keys? I am not sure what data this `byte` is supposed to represent. Could you share an example of how to use this so I can check if the call was something specific, for example "GetGameList`?

Thanks in advance!

Comments

  • JohnTubeJohnTube mod
    edited February 12
    Hi @creatingames,

    There is a helper class WebRpcResponse that does this for you.
    API Reference.

    Try:
    void OnWebRpcResponse(OperationResponse response) 
    {
        WebRpcResponse wrr = new WebRpcResponse(response);
    }
Sign In or Register to comment.