Nalix.SDK
14.4.0
dotnet add package Nalix.SDK --version 14.4.0
NuGet\Install-Package Nalix.SDK -Version 14.4.0
<PackageReference Include="Nalix.SDK" Version="14.4.0" />
<PackageVersion Include="Nalix.SDK" Version="14.4.0" />
<PackageReference Include="Nalix.SDK" />
paket add Nalix.SDK --version 14.4.0
#r "nuget: Nalix.SDK, 14.4.0"
#:package Nalix.SDK@14.4.0
#addin nuget:?package=Nalix.SDK&version=14.4.0
#tool nuget:?package=Nalix.SDK&version=14.4.0
Nalix.SDK
Client-side transport sessions, handshakes, request/response helpers, subscriptions, and cipher management for Nalix applications.
Nalix.SDK is the client package. It exposes TCP, WebSocket, and datagram (NDP over UDP) sessions, typed request correlation, session resume helpers, subscription dispatch, and runtime cipher updates.
Install
dotnet add package Nalix.SDK
What It Provides
| Area | Purpose | Main types |
|---|---|---|
| Transport sessions | Shared client session base and concrete transports | TransportSession, TcpSession, WebSocketSession, DatagramSession |
| Request/response | Correlated typed request matching with timeout support | RequestAsync<TResponse>, RequestOptions |
| Handshake and resume | X25519 connection setup and session resumption | ConnectAsync, ConnectWithResumeAsync |
| Cipher control | Runtime cipher switching and rotation | UpdateCipherAsync |
| Subscriptions | Typed packet event handlers | On<TPacket>(), OnExact<TPacket>() |
| Options | Client transport and request configuration | TransportOptions, WebSocketTransportOptions, RequestOptions |
TCP Request
using Nalix.SDK.Options;
using Nalix.SDK.Transport;
using Nalix.SDK.Transport.Extensions;
TransportOptions options = new()
{
Address = "127.0.0.1",
Port = 57200
};
using TcpSession session = new(options);
await session.ConnectAsync(options.Address, options.Port);
MyResponse response = await session.RequestAsync<MyResponse>(
new MyRequest { Id = 1 },
RequestOptions.Default.WithTimeout(5_000));
Subscriptions
using Nalix.SDK.Transport.Extensions;
using IDisposable subscription = session.On<ChatMessage>(message =>
{
Console.WriteLine(message.Text);
});
Design Notes
- Use one
TransportSessionper active client connection. - Request helpers correlate responses and clean up pending waiters on timeout.
- After
HandshakeAsync(), a request is encrypted only whenRequestOptions.Encryptistrue, or when it is leftnullandTransportOptions.EncryptRequestsByDefaultis enabled. The default (false) leaves encryption to an outer TLS layer. - WebSocket clients are useful for browser-compatible deployments behind reverse proxies.
Documentation
- Package guide: https://ppn.io.vn/packages/nalix-sdk/
- API reference: https://ppn.io.vn/api/sdk/
- WebSocket session: https://ppn.io.vn/api/sdk/websocket-session/
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
-
net10.0
- Nalix.Codec (>= 14.4.0)
-
net11.0
- Nalix.Codec (>= 14.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 14.4.0 | 699 | 11/22/2026 |
| 14.3.10 | 117 | 11/19/2026 |
| 14.3.9 | 7,773 | 10/27/2026 |
| 14.3.8 | 643 | 10/26/2026 |
| 14.3.7 | 2,469 | 10/24/2026 |
| 14.3.6 | 110 | 10/24/2026 |
| 14.3.5 | 231 | 10/6/2026 |
| 14.3.4 | 109 | 10/6/2026 |
| 14.3.3 | 148 | 9/26/2026 |
| 14.3.2 | 112 | 9/26/2026 |
| 14.3.1 | 3,105 | 8/29/2026 |
| 14.3.0 | 854 | 8/27/2026 |
| 14.2.18 | 204 | 8/13/2026 |
| 14.2.17 | 511 | 8/11/2026 |
| 14.2.16 | 248 | 8/1/2026 |
| 14.2.15 | 187 | 7/31/2026 |
| 14.2.14 | 177 | 7/31/2026 |
| 14.2.13 | 175 | 7/31/2026 |
| 14.2.12 | 180 | 7/29/2026 |
| 14.2.11 | 186 | 7/28/2026 |
- Managed Sessions: Professional lifecycle management for TcpSession and UdpSession with automatic reconnection and state handling.
- Request-Response Pattern: High-level RequestAsync<TResponse> API featuring correlated packet matching and granular timeout management.
- Session Orchestration: Advanced extensions for handshakes, session resumption, and dynamic cipher rotation on active transport streams.
- Typed Messaging: Type-safe packet subscription model (On<T>) for clean and efficient application-level message handling.
- Resource Optimization: Full integration with the zero-allocation PacketRegistry for high-performance, pool-aware data processing.