First commit

This commit is contained in:
2026-08-28 03:54:53 +03:00
commit 7b77e7b774
13 changed files with 254 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
using Microsoft.AspNetCore.SignalR;
using Microsoft.Extensions.Logging;
namespace AMessanger.Core.Hubs;
public class ChatHub(ILogger<ChatHub> logger) : Hub
{
public async Task SendMessage(string user, string message)
{
logger.LogInformation($"{user}: {message}");
await Clients.All.SendAsync("ReceiveMessage", user, message);
}
}