Fixed typo
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<Copyright>EonaCat (Jeroen Saey)</Copyright>
|
||||
<PackageReadmeFile>readme.md</PackageReadmeFile>
|
||||
<PackageId>EonaCat.Connections</PackageId>
|
||||
<Version>1.1.1</Version>
|
||||
<Version>1.1.2</Version>
|
||||
<Authors>EonaCat (Jeroen Saey)</Authors>
|
||||
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
||||
<PackageIcon>EonaCat.png</PackageIcon>
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace EonaCat.Connections.Models
|
||||
public int HeartbeatIntervalSeconds { get; set; } = 5;
|
||||
public bool EnablePingPongLogs { get; set; }
|
||||
public int MAX_MESSAGE_SIZE { get; set; } = 100 * 1024 * 1024; // 100 MB
|
||||
public bool DisconectOnMissedPong { get; set; }
|
||||
public bool DisconnectOnMissedPong { get; set; }
|
||||
public double IdleTimeoutSeconds { get; set; } = 30; // 0 means no idle timeout
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -374,7 +374,7 @@ namespace EonaCat.Connections
|
||||
RemoteEndPoint = client.RemoteEndPoint
|
||||
});
|
||||
|
||||
if (_config.DisconectOnMissedPong)
|
||||
if (_config.DisconnectOnMissedPong)
|
||||
{
|
||||
DebugConnection($"Disconnecting client {client.Nickname} ({client.Id}) due to missed PONG response.");
|
||||
_ = DisconnectClientAsync(clientId, DisconnectReason.NoPongReceived);
|
||||
|
||||
@@ -81,7 +81,7 @@ The `Configuration` class provides extensive customization options:
|
||||
- **EnableHeartbeat**: Enable ping-pong heartbeat (default: false)
|
||||
- **HeartbeatIntervalSeconds**: Heartbeat interval (default: 5)
|
||||
- **EnablePingPongLogs**: Log ping-pong messages (default: false)
|
||||
- **DisconectOnMissedPong**: Disconnect on missed pong response (default: false)
|
||||
- **DisconnectOnMissedPong**: Disconnect on missed pong response (default: false)
|
||||
|
||||
### Message Framing
|
||||
- **MessageFraming**: `None`, `Delimiter`, or `LengthPrefixed` (default: None)
|
||||
@@ -415,7 +415,7 @@ Keep connections alive and detect dead connections:
|
||||
```csharp
|
||||
config.EnableHeartbeat = true;
|
||||
config.HeartbeatIntervalSeconds = 5;
|
||||
config.DisconectOnMissedPong = true; // Disconnect if pong not received
|
||||
config.DisconnectOnMissedPong = true; // Disconnect if pong not received
|
||||
```
|
||||
|
||||
### Idle Detection
|
||||
|
||||
Reference in New Issue
Block a user