A chat application built with ASP.NET Core and SignalR, featuring AI-powered sentiment analysis using Azure Language Service. The application analyzes the emotional tone of each message and displays sentiment scores in real-time.
- Framework: .NET 9.0
- Real-time Communication: SignalR with Azure SignalR Service
- Database: Entity Framework Core with SQL Server
- AI Service: Azure Cognitive Services (Language service)
- API: RESTful endpoints for message retrieval
- HTML5/CSS3/JavaScript: Vanilla JavaScript for lightweight performance
- SignalR Client: Microsoft SignalR JavaScript library
- Real-time Updates: Websocket connection for instant message delivery
GET /api/chat/messages- Retrieve chat historyGET /api/chat/messages/{id}- Get specific messageGET /api/chat/health- Health check endpoint
- Hub URL:
/chathub
SignalR hub that handles real-time message broadcasting. Receives messages from clients. Prforms sentiment analysis and saves all messages to database.
Integrates with Azure Language Service to analyze message sentiment. Returns scores for positive, negative and neutral sentiment.
REST API controller providing endpoints to retrieve messages.