Click or drag to resize

WebSocketMultiplayerPeerSetBuffers Method

Configures the buffer sizes for this WebSocket peer. Default values can be specified in the Project Settings under network/limits. For server, values are meant per connected peer.

The first two parameters define the size and queued packets limits of the input buffer, the last two of the output buffer.

Buffer sizes are expressed in KiB, so 4 = 2^12 = 4096 bytes. All parameters will be rounded up to the nearest power of two.

Note: HTML5 exports only use the input buffer since the output one is managed by browsers.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Error SetBuffers(
	int inputBufferSizeKb,
	int inputMaxPackets,
	int outputBufferSizeKb,
	int outputMaxPackets
)

Parameters

inputBufferSizeKb
Type: SystemInt32

[Missing <param name="inputBufferSizeKb"/> documentation for "M:Godot.WebSocketMultiplayerPeer.SetBuffers(System.Int32,System.Int32,System.Int32,System.Int32)"]

inputMaxPackets
Type: SystemInt32

[Missing <param name="inputMaxPackets"/> documentation for "M:Godot.WebSocketMultiplayerPeer.SetBuffers(System.Int32,System.Int32,System.Int32,System.Int32)"]

outputBufferSizeKb
Type: SystemInt32

[Missing <param name="outputBufferSizeKb"/> documentation for "M:Godot.WebSocketMultiplayerPeer.SetBuffers(System.Int32,System.Int32,System.Int32,System.Int32)"]

outputMaxPackets
Type: SystemInt32

[Missing <param name="outputMaxPackets"/> documentation for "M:Godot.WebSocketMultiplayerPeer.SetBuffers(System.Int32,System.Int32,System.Int32,System.Int32)"]

Return Value

Type: Error

[Missing <returns> documentation for "M:Godot.WebSocketMultiplayerPeer.SetBuffers(System.Int32,System.Int32,System.Int32,System.Int32)"]

See Also