RSMatrix 1.0.0-beta-1
See the version list below for details.
dotnet add package RSMatrix --version 1.0.0-beta-1
NuGet\Install-Package RSMatrix -Version 1.0.0-beta-1
<PackageReference Include="RSMatrix" Version="1.0.0-beta-1" />
paket add RSMatrix --version 1.0.0-beta-1
#r "nuget: RSMatrix, 1.0.0-beta-1"
// Install RSMatrix as a Cake Addin #addin nuget:?package=RSMatrix&version=1.0.0-beta-1&prerelease // Install RSMatrix as a Cake Tool #tool nuget:?package=RSMatrix&version=1.0.0-beta-1&prerelease
RSMatrix
Scope
For now this is just a little sideproject to support the matrix.org chat protocol in .NET. I tried several libraries and got none of them to work as they were all still in beta or abandoned.
Implementing this using the Client spec version 1.13
The goal is to have a simple text client which can retrieve and send text messages for Chatbot development. It's not intended as a comprehensive library for building a client UI.
I will try to make it conform to all requirements. It sends automatic receipts and read notifications.
End-to-End Encryption is a bonus, not sure if it will eventually be supported.
Example
Check the github repository for a minimalistic console example. Here is the basic usage:
MatrixTextClient client = await MatrixTextClient.ConnectAsync(userid, password, device,
httpClientFactory, cancellationToken, logger);
await client.SyncAsync(MessageReceivedAsync);
and to handle messages:
async Task MessageReceivedAsync(ReceivedTextMessage message)
{
Console.WriteLine(message);
await message.Room.SendTypingNotificationAsync();
await message.SendResponseAsync("pong!");
}
Room and user information is cached and updated on the client object. Associated rooms and users are included in the message given to the handler.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
-
net9.0
- BouncyCastle.Cryptography (>= 2.5.0)
- Microsoft.Extensions.Http (>= 9.0.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 |
---|---|---|
1.0.0-beta-5 | 51 | 1/26/2025 |
1.0.0-beta-4 | 48 | 1/20/2025 |
1.0.0-beta-3 | 37 | 1/18/2025 |
1.0.0-beta-2 | 32 | 1/18/2025 |
1.0.0-beta-1 | 42 | 1/8/2025 |
1.0.0-alpha-2 | 34 | 1/7/2025 |
1.0.0-alpha-1 | 28 | 1/7/2025 |