Mezon.Net.Mmn
1.7.0
dotnet add package Mezon.Net.Mmn --version 1.7.0
NuGet\Install-Package Mezon.Net.Mmn -Version 1.7.0
<PackageReference Include="Mezon.Net.Mmn" Version="1.7.0" />
<PackageVersion Include="Mezon.Net.Mmn" Version="1.7.0" />
<PackageReference Include="Mezon.Net.Mmn" />
paket add Mezon.Net.Mmn --version 1.7.0
#r "nuget: Mezon.Net.Mmn, 1.7.0"
#:package Mezon.Net.Mmn@1.7.0
#addin nuget:?package=Mezon.Net.Mmn&version=1.7.0
#tool nuget:?package=Mezon.Net.Mmn&version=1.7.0
Mezon.Net
.NET client libraries for the Mezon platform — realtime chat, bots, and channel applications.
Packages
| Package | Audience | Install |
|---|---|---|
| Mezon.Net.Sdk | Bot / channel-app developers | dotnet add package Mezon.Net.Sdk |
| Mezon.Net.Client | UI / full engine access | dotnet add package Mezon.Net.Client |
| Mezon.Net.Core | Shared contracts & options | transitive |
| Mezon.Net.Transport | TCP / WebSocket transport | transitive |
| Mezon.Net.Mmn | MMN gRPC + ZK prove HTTP | dotnet add package Mezon.Net.Mmn (also transitive from Sdk on net6.0+) |
| Mezon.Net.Sdk.Caching.Sqlite | Optional SQLite message cache | dotnet add package Mezon.Net.Sdk.Caching.Sqlite |
| Mezon.Net.Sdk.Caching.Redis | Optional Redis/Valkey snapshot cache | dotnet add package Mezon.Net.Sdk.Caching.Redis |
Quickstart (Sdk)
using Mezon.Net.Client; // MessageContent
using Mezon.Net.Models; // ChannelMessageResponse
await using var client = new Mezon.Net.Sdk.MezonClient(
new Mezon.Net.Sdk.MezonClientOptions(botId, token));
client.ChannelMessageReceived += message =>
{
var data = (ChannelMessageResponse)message;
Console.WriteLine(MessageContent.Parse(data.Content).Text);
return Task.CompletedTask;
};
await client.LoginAsync();
var channel = await client.GetChannelAsync(channelId);
await channel.SendTextAsync("Hello from Mezon.Net");
Realtime events of one channel (or clan) are delivered in order, one at a time. Keep handlers short: a handler that
runs longer than SocketHandlerTimeoutInMilliseconds (default 3 s) stops holding its channel, and when a channel's
queue is full new events are dropped. Set EventDispatchMode = EventDispatchMode.Concurrent for the pre-1.7.0
unordered delivery.
MMN (Mezon Mainnet)
Configure gRPC node and ZK prove endpoints on MezonClientOptions (defaults point at production Mezon endpoints):
options.MMNApiUrl = "https://dong.mezon.ai/mmn-api"; // gRPC
options.ZkApiUrl = "https://dong.mezon.ai/zk-api"; // POST /prove
After LoginAsync, the SDK initializes KeyGen, AddressMmn, and ZkProofs. This is best effort: if the MMN or ZK service is unreachable, the failure is logged, login still succeeds, and initialization is retried on the next connect. Send tokens with SendTransferAsync(recipient, amount).
Use client.Mmn.NodeClient for low-level gRPC access and CryptoHelper for signing. On netstandard2.1, MMN APIs are unavailable (Sdk references Mezon.Net.Mmn only for net6.0+).
Rate limits
Socket traffic is throttled client-side (default 60/s, 500/min). Configure limits on MezonSocketClientOptions, and optionally handle delays:
options.DefaultRatelimitCallback = async info =>
{
Console.WriteLine($"Delayed by {info.Bucket} for {info.ResetAfter}");
// SDK wires SendBypassMessageAsync so warnings skip the transport limiter:
if (info.SendBypassMessageAsync != null)
{
await info.SendBypassMessageAsync(clanId, channelId, $"Slow down — retry in {info.ResetAfter.TotalSeconds:0.#}s");
}
};
RequestOptions.BypassRateLimiter skips client throttling for a single send; prefer IRateLimitInfo.SendBypassMessageAsync for warnings.
Documentation
See the GitHub repository for architecture notes, examples, and contribution guidelines.
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
-
net10.0
- BouncyCastle.Cryptography (>= 2.6.2)
- Google.Protobuf (>= 3.33.2)
- Grpc.Net.Client (>= 2.76.0)
- SimpleBase (>= 3.0.0)
-
net6.0
- BouncyCastle.Cryptography (>= 2.6.2)
- Google.Protobuf (>= 3.33.2)
- Grpc.Net.Client (>= 2.76.0)
- SimpleBase (>= 3.0.0)
- System.Text.Json (>= 8.0.5)
-
net8.0
- BouncyCastle.Cryptography (>= 2.6.2)
- Google.Protobuf (>= 3.33.2)
- Grpc.Net.Client (>= 2.76.0)
- SimpleBase (>= 3.0.0)
-
net9.0
- BouncyCastle.Cryptography (>= 2.6.2)
- Google.Protobuf (>= 3.33.2)
- Grpc.Net.Client (>= 2.76.0)
- SimpleBase (>= 3.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Mezon.Net.Mmn:
| Package | Downloads |
|---|---|
|
Mezon.Net.Sdk
High-level Mezon bot/application SDK for .NET — entities, events, builders, and DI. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.7.0 | 143 | 10/8/2026 |
| 1.6.2 | 140 | 9/30/2026 |
| 1.6.1 | 135 | 9/30/2026 |
| 1.6.0 | 143 | 9/28/2026 |
| 1.5.1 | 137 | 9/27/2026 |
| 1.5.0 | 142 | 9/25/2026 |
| 1.4.2 | 138 | 9/25/2026 |
| 1.4.1 | 134 | 9/24/2026 |
| 1.4.0 | 141 | 9/18/2026 |
| 1.3.0 | 154 | 9/14/2026 |
| 1.2.2 | 153 | 9/11/2026 |
| 1.2.1 | 173 | 8/5/2026 |
| 1.2.0 | 162 | 8/5/2026 |
| 1.1.0 | 162 | 8/4/2026 |
| 1.0.1 | 153 | 8/3/2026 |
| 1.0.0 | 152 | 8/3/2026 |