Declared in Transmitter

Declaration

bool TransmitTimedMessage(
    Message msg,
    double time,
    string key
);

Description

Attempts to transmit a message across the network. The data will be converted to packets in the correct order and transmitted over the network. The key is used to have an identification of the data, which can provide additional context about the information that is sent, but can be completely optional. By default, if no key is present, the key will be the name of the message type. This contains an additional option for a custom time to transmit the message, if it was sent from another source.

Parameters

NameDescription
msgThe message to communicate across the network
time[s] The time at the current moment of sending, to stamp the message
keyThe key that defines the data on the network