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:
I'll try, but I'm not advanced enough for that. I've read this post before.
Any other suggestions?
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
To help users post good questions and use the site effectively we have posted a user guide. Please check it out.
Answers and Comments
5 People are following this question.
How can I create a simple chat system for my multiplayer game?
Only activate chat if T is pressed
Can i reverse the effect of network view component.
Help w/Network Enemy AI(I got script already)
Unity 3D Networking questions (About master servers)