Click or drag to resize

NetworkedMultiplayerENetDisconnectPeer Method

Disconnect the given peer. If "now" is set to true, the connection will be closed immediately without flushing queued messages.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void DisconnectPeer(
	int id,
	bool now = false
)

Parameters

id
Type: SystemInt32

[Missing <param name="id"/> documentation for "M:Godot.NetworkedMultiplayerENet.DisconnectPeer(System.Int32,System.Boolean)"]

now (Optional)
Type: SystemBoolean

[Missing <param name="now"/> documentation for "M:Godot.NetworkedMultiplayerENet.DisconnectPeer(System.Int32,System.Boolean)"]

See Also