Skip to content

Commit a24a5a8

Browse files
committed
Connect to server from client in RPC example
1 parent 2b26788 commit a24a5a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/rpc/src/client.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ impl ServerPuppet {
3131

3232
let tree = owner.get_tree().expect("could not retreive SceneTree");
3333
let tree = unsafe { tree.assume_safe() };
34+
35+
tree.set_network_peer(peer);
3436

3537
tree.connect(
3638
"connected_to_server",

0 commit comments

Comments
 (0)