A Unity Client with Pony Express installed is connected to a Pony Express Message Server and wants to send a chat message.
For more information on how this connection is made, see the Sample Connection example Here
This example will use the Chat Client included in Pony Express - In addition to the required Client Settings script, please also add the Chat Client script to add Chat functionality into your application.
Unity Client - Chat Client send button calls the ChatClient.SendChat() static method
The SendChat method calls the static method inside of DefaultMessaging.cs to send the chat message to the server
The Message Server receives the message that a chat has been sent
The Message Server broadcasts the message to all connected clients
The connected clients all receive messages through an incoming message queue informing them that a chat occurred
The Unity Client consumes the message as needed so that the message can be processed
The Unity Client shows the message in a scroll view, so that the user can read the Chat Message