Function WebRTCMultiplayer.addPeer
Add a new peer to the mesh with the given peer_id. The WebRTCPeerConnection must be in state constant WebRTCPeerConnection.
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 WebRTCPeerConnection).
godot .core .defs .GodotError addPeer
(
WebRTCPeerConnection peer,
const(long) peer_id,
const(long) unreliable_lifetime = 1L
) nothrow @nogc;