Declared in Transmitter

Declaration

bool TransmitMessage(
    Message msg,
    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.

Parameters

NameDescription
msgThe message to communicate across the network
keyThe key that defines the data on the network