RSMatrix 1.0.0-beta-2

This is a prerelease version of RSMatrix.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package RSMatrix --version 1.0.0-beta-2                
NuGet\Install-Package RSMatrix -Version 1.0.0-beta-2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RSMatrix" Version="1.0.0-beta-2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RSMatrix --version 1.0.0-beta-2                
#r "nuget: RSMatrix, 1.0.0-beta-2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install RSMatrix as a Cake Addin
#addin nuget:?package=RSMatrix&version=1.0.0-beta-2&prerelease

// Install RSMatrix as a Cake Tool
#tool nuget:?package=RSMatrix&version=1.0.0-beta-2&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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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