RoutingUtil
Utility module for checking if a message is intended for the current server.
Functions
boolean IsCurrentServerSender
RoutingUtil.IsCurrentServerSender = function(message: CsrpMessage | string): boolean
Returns whether the message sender is the current server. If the message is a string, it will be parsed as a CsrpMessage.
Arguments:
CsrpMessage
orstring
message
- The message to check.
boolean IsCurrentServerRecipient
RoutingUtil.IsCurrentServerRecipient = function(message: CsrpMessage | string): boolean
Returns whether the message is intended for the current server. If the message is a string, it will be parsed as a CsrpMessage.
Arguments:
CsrpMessage
orstring
message
- The message to check.