Click or drag to resize

WebSocketClientDisconnectFromHost Method

Disconnects this client from the connected host. See Close(Int32, String) for more information.

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

Parameters

code (Optional)
Type: SystemInt32

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

reason (Optional)
Type: SystemString

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

See Also