Skip to content

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:

  1. CsrpMessage or string 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:

  1. CsrpMessage or string message - The message to check.