Utility.Message.Size

Returns the size of a message, as used for bandwidth control.

Usage:

size = Utility.Message.Size(to, identifier, data)
ParameterTypeDatatypeDescription
dataparameterstringThe data to send. This parameter is binary-safe.
identifierparameterstringThe 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.
toparameterstring/nilThe name of the player or channel to send to. nil if this is not targeted at a specific player or channel.
sizeresultnumberThe calculated size of the message.