public SignalRConnection(Client client)
 {
     this.client = client;
     connection  = new HubConnectionBuilder()
                   .WithUrl(APIUrl.SignalR())
                   .Build();
     connectionToServer();
 }