Class RustPlusSocketOptions
- Namespace
- RustPlusApi
- Assembly
- RustPlusApi.dll
Tuning options for RustPlusSocket. All values have sensible defaults; pass an instance to the RustPlus constructor only when the defaults don't fit (slow servers, aggressive NATs, latency-sensitive tooling). Configure the instance at construction and treat it as fixed afterwards โ the client never mutates it.
public sealed class RustPlusSocketOptions
- Inheritance
-
RustPlusSocketOptions
- Inherited Members
Properties
KeepAliveInterval
The WebSocket keep-alive ping interval. Default: 20 seconds.
public TimeSpan KeepAliveInterval { get; set; }
Property Value
ReceiveBufferSize
The receive buffer size in bytes. Map images arrive as multi-megabyte messages, so a larger buffer means far fewer reads per message. Default: 64 KB.
public int ReceiveBufferSize { get; set; }
Property Value
RequestTimeout
How long a request waits for its response before faulting with a TimeoutException. Default: 30 seconds.
public TimeSpan RequestTimeout { get; set; }
Property Value
TeardownTimeout
Bounds teardown waits (graceful close, loop shutdown, pending-request drain) so a wedged loop or dead peer can never hang disposal. Default: 5 seconds.
public TimeSpan TeardownTimeout { get; set; }