Skip to content

Commit 6dac63a

Browse files
bors[bot]banool
andauthored
Merge #677
677: Connect to server from client in RPC example r=toasteater a=banool Without this the client doesn't actually connect to the server. Co-authored-by: Daniel Porteous <danielporteous1@gmail.com>
2 parents ff9e9bd + d13823d commit 6dac63a

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
@@ -32,6 +32,8 @@ impl ServerPuppet {
3232
let tree = owner.get_tree().expect("could not retreive SceneTree");
3333
let tree = unsafe { tree.assume_safe() };
3434

35+
tree.set_network_peer(peer);
36+
3537
tree.connect(
3638
"connected_to_server",
3739
owner,

0 commit comments

Comments
 (0)