Step 1 — Get access

BlazorChat.Server is currently in early access and has not yet been published to NuGet. Contact us to request access or be notified at launch.

Step 2 — Register the service

One line in Program.cs. No hub, no BlazorChat.Server — messages live in the server process.

// Program.cs
builder.Services.AddSingleton<IChatService, InMemoryChatService>();

Step 3 — Add the widget

Set AutoCreateChatService="false" so the widget uses the DI-registered service instead of trying to connect to BlazorChat.Server's SignalR hub.

@using BlazorChat.Components
@using BlazorChat.Shared.Models

<ChatWidget ThreadId="release-1.2.3"
            ChatSender="@currentUser"
            ThreadTitle="Release 1.2.3"
            AutoCreateChatService="false" />

@code {
    private ChatSender currentUser = new()
    {
        Id          = "user-abc",
        DisplayName = "Alice"
    };
}

⚠️ In-Memory limitations

Messages are stored in the server process only — they are lost on restart and not shared across multiple nodes. Use this for demos, prototypes, or single-instance internal tools. For persistence and scale, use BlazorChat.Server for SignalR-backed messaging.

An unhandled error has occurred. Reload 🗙