Hey Guys, I am gathering information on proper practices in building a TCP Chat Server. In essence the Chat Server should be able to open chatrooms and Direct Messages to individuals. Then send the messages and chatroom information to the Rest API in order to save it to the database. Currently I am able to do the Server Functionality, but I am not able to create rooms or broadcast messages only between 2 users. What would be a better approach to accomplish this functionality? Is IRC something I want to look into or can I just do this in SwiftNIO. I've done this before in web sockets, where a wss:// url will get a room created or a session between 2 users, but writing it with TCP is something new to me.
My Server Repo is here:
Thank you for your time