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.
To help users navigate the site we have posted a user guide.
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).
Answers and Comments
5 People are following this question.
How can I create a simple chat system for my multiplayer game?
How can I set up the VoiceChat asset by the GitHub user fholm in an existing project in unity 5.2.1f1
Only activate chat if T is pressed
RPC and inheritance
Networked Coroutine DOESNT behave on client