Lua API
On this page

MessageEventArgs

Inherits from

Contains data about a message

Info

For more information about events, see the Using Events section of the scripting docs.

This event args class is used by the following events:

Fields:

Data Object

The actual message data

Direction MessageDirection

Direction the message was sent in (S2C (server to client) or C2S (client to server))

Empty EventArgs

staticread only

Provides a value to use with events that do not have event data.

Time DateTime

The time this message was sent or received (in UTC)

Type MessageType

The type of message this is

Methods:

GetPropertyKeys() : string[]

Returns a list of strings of all public property / field names. Useful for reflection on UserData in lua scripts

Returns:string[]

ToString() : string

Returns a string that represents the current object.

Returns:string