Public Messaging

Top  Previous  Next

ElectroServer 4 supports rooms. A room is a convenient collection of users that can see each other. A public message is a message sent by a user in a room to that room. All users in that room receive this message.

 

A public message is made up of two pieces:

The message body – This is most typically what you would see appear in a chat window.
An optional EsObject – An EsObject is a highly flexible serialization format supported all over ElectroServer. This provides an easy way for users to send simple or complex data to  other users. Example: you want to send a chat message to the room but an audio clip, animation, or other non-text action needs to be performed when the message is displayed. This can easily be achieved by sending extra data via EsObject along with the public message.