- Home /
Questions about a chat system architecture
In my application, when the player logs in he is able to send and receive chat messages in the lobby. The lobby is the "main-menu", where the other menus and the server list is showed.
I suppose that when the player starts the game and do the log in, the game connects to a chat server. The problem is that after he connects to a match server, he needs to continue receiving and sending messages from the chat server (he needs to receive and send chat messages from the match server, which is not a problem).
If the the player is already connected to the chat server, how could he still receiving the messages from the chat server after he joined in a match server, if Unity3D can't connect to 2 servers at once?
Is there another aproach for a chat system you could suggest?
Answer by numberkruncher · May 11, 2012 at 12:13 AM
You may be able to use the .NET sockets API for chat server functionality. The following Q&A might be of interest:
http://answers.unity3d.com/questions/27093/is-it-possible-to-connect-to-two-servers-at-same-t.html
I'll try, but I'm not advanced enough for that. I've read this post before.
Any other suggestions?
Your answer