Declared in Transmitter

Declaration

bool TransmitJSON(
    JToken json,
    string key
);

Description

Attempts to transmit a JSON object 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.

Parameters

NameDescription
jsonThe JSON object to communicate across the network
keyThe key that defines the data on the network