Message
abstract class Message( val data: IMessageBufferReader, val tag: String, val category: Int)
Content copied to clipboard
Message
is an abstract class that represents a unit of communication between two connected peers. It wraps the user-defined payload for delivery between connected peers.
It is made up of three core components:
Data: The client specific payload being delivered.
Tag: The type of data being transmitted. Mime type usage is encouraged, but not required.
Category: A user-defined numeric that provides information about the message; it can be used to provide processing information without deserializing the payload