namespace CommonConsole { using SignalR; using System; public class Program { const string URL = "http://sla12iis01.emea.sensus.net/LaaProductionWeb"; // const string URL = "http://localhost:52822/LaaProductionWeb/"; public static void Main() { var client = new DataHub(); client.Connect(URL); client.DataReceived += data => { for (int i = 0; i < data.Count; i++) { var proeprty = data.GetProperty(i); var value = data.GetString(proeprty); Console.WriteLine($"{proeprty} = {value}"); } Console.WriteLine(); }; var counter = 0; while (true) { var dictionary = new DataDictionary(); dictionary.AddInt(nameof(counter), counter++); dictionary.AddString("message", Console.ReadLine()); client.Send(dictionary); } } } }