void TriggerRelays() { foreach (var relay in NetworkPositionRelays) { connection.SendMessage("object:position", relay.RelayData); } foreach (var relay in NetworkEntityRelays) { connection.SendMessage("object:position", relay.RelayData); } }
public static async Task SendMessage(string data) { await _connection.SendMessage(data); }
public static async Task SendMessage(string data) { _connection.SendMessage(data).Wait(); }