WebRTCMultiplayerAddPeer Method |
Add a new peer to the mesh with the given peer_id. The WebRTCPeerConnection must be in state .
Three channels will be created for reliable, unreliable, and ordered transport. The value of unreliable_lifetime will be passed to the maxPacketLifetime option when creating unreliable and ordered channels (see CreateDataChannel(String, Dictionary)).
Namespace: Godot
public Error AddPeer( WebRTCPeerConnection peer, int peerId, int unreliableLifetime = 1 )
[Missing <param name="peer"/> documentation for "M:Godot.WebRTCMultiplayer.AddPeer(Godot.WebRTCPeerConnection,System.Int32,System.Int32)"]
[Missing <param name="peerId"/> documentation for "M:Godot.WebRTCMultiplayer.AddPeer(Godot.WebRTCPeerConnection,System.Int32,System.Int32)"]
[Missing <param name="unreliableLifetime"/> documentation for "M:Godot.WebRTCMultiplayer.AddPeer(Godot.WebRTCPeerConnection,System.Int32,System.Int32)"]
[Missing <returns> documentation for "M:Godot.WebRTCMultiplayer.AddPeer(Godot.WebRTCPeerConnection,System.Int32,System.Int32)"]