I've read alot of other threads about UDP vs TCP but haven't really found any to correctly answer my question of design
The chat network that I'll be working on for a project will have 3 main applications: Client, Server, and a HUB(server).
The HUB server is the main server that connects all servers together to form a network. The Server will keep up with the chat rooms being made, in other words it will host the rooms. The Client will be used to connect to the servers to join chat rooms.
Now my main concern is when should I use UDP over TCP or vice versa when sending or executing requests from client to client, server to server, or server to client?
NOTE: This whole chat network project is 100% text-based, no graphics, webcam, mic, or file sharing functionality.