Clarifying callbacks/RPC semantics
Are the PUN callbacks just another wording for RPC?? I am a bit confused.
Best Answer
-
Hi. Similar on the surface but consider the PUN callbacks as function calls on methods defined in your local app. So you call JoinRoom() and the system library does that then calls the Interface method OnJoinedRoom() locally.
RPC is a protocol for calling functions across the network on a separate machine. The server calls them once per client but your client doesn't "override" the callback rather it defines a method as RPC callable.
1
Answers
-
Hi. Similar on the surface but consider the PUN callbacks as function calls on methods defined in your local app. So you call JoinRoom() and the system library does that then calls the Interface method OnJoinedRoom() locally.
RPC is a protocol for calling functions across the network on a separate machine. The server calls them once per client but your client doesn't "override" the callback rather it defines a method as RPC callable.
1