The following event will be called when a text message is received:
void onTextMessageEvent( | serverConnectionHandlerID, | |
targetMode, | ||
toID, | ||
fromID, | ||
fromName, | ||
fromUniqueIdentifier, | ||
message) ; |
uint64 serverConnectionHandlerID
;anyID targetMode
;anyID toID
;anyID fromID
;const char* fromName
;const char* fromUniqueIdentifier
;const char* message
;
serverConnectionHandlerID
ID of the server connection handler from which the text message was sent.
targetMode
Target mode of this text message. The value is defined by the enum TextMessageTargetMode:
enum TextMessageTargetMode { TextMessageTarget_CLIENT=1, TextMessageTarget_CHANNEL, TextMessageTarget_SERVER, TextMessageTarget_MAX };
toID
Id of the target of the text message.
fromID
Id of the client who sent the text message.
fromName
Name of the client who sent the text message.
fromUniqueIdentifier
Unique ID of the client who sent the text message.
message
String containing the text message.