How farahchannir/farah_channir_chatserver works
This is a minimal console chat client paired with an ASP.NET Core WebSocket server. A user enters a message in the client and ends it with “xx”; the client sends it to /send. The server receives it, displays it in its console, waits for a server-operator reply ending with “xx”, and sends that reply to the client. The sampled code shows one connected client handled at a time; no persistence or broadcast subsystem is evident.
Main entry points: Startup.cs WebSocket route · Farah_Channir_Client/Program.cs Client loop · Farah_Channir_ChatServer/Program.cs Host startup
Components 5
Console Client
- Client loop
Farah_Channir_Client/Program.cs
WebSocket Server
- Host startup
Farah_Channir_ChatServer/Program.cs - WebSocket route
Farah_Channir_ChatServer/Startup.cs
Other components
- Chat user
- Server operator
Connections 6
- Chat user → Client loop: enters messages
- Client loop → WebSocket route: connects and sends
- Host startup → WebSocket route: configures app
- WebSocket route → Server operator: displays message
- Server operator → WebSocket route: enters reply
- WebSocket route → Client loop: sends reply