Returns the size of a message, as used for bandwidth control.
size = Utility.Message.Size(to, identifier, data) | |||
Parameter | Type | Datatype | Description |
---|---|---|---|
data | parameter | string | The data to send. This parameter is binary-safe. |
identifier | parameter | string | The identifier type of the message. Used for the receiver to filter accepted messages via the Command.Message.Accept() function. Must be at least three characters long. |
to | parameter | string/nil | The name of the player or channel to send to. nil if this is not targeted at a specific player or channel. |
size | result | number | The calculated size of the message. |