Пример #1
0
 void TriggerRelays()
 {
     foreach (var relay in NetworkPositionRelays)
     {
         connection.SendMessage("object:position", relay.RelayData);
     }
     foreach (var relay in NetworkEntityRelays)
     {
         connection.SendMessage("object:position", relay.RelayData);
     }
 }
Пример #2
0
 public static async Task SendMessage(string data)
 {
     await _connection.SendMessage(data);
 }
Пример #3
0
 public static async Task SendMessage(string data)
 {
     _connection.SendMessage(data).Wait();
 }