Click or drag to resize

WebSocketServerDisconnectPeer Method

Disconnects the peer identified by id from the server. See Close(Int32, String) for more information.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void DisconnectPeer(
	int id,
	int code = 1000,
	string reason = ""
)

Parameters

id
Type: SystemInt32

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

code (Optional)
Type: SystemInt32

[Missing <param name="code"/> documentation for "M:Godot.WebSocketServer.DisconnectPeer(System.Int32,System.Int32,System.String)"]

reason (Optional)
Type: SystemString

[Missing <param name="reason"/> documentation for "M:Godot.WebSocketServer.DisconnectPeer(System.Int32,System.Int32,System.String)"]

See Also