title: Constructor of class 'HubConnection' is private and only accessible within the class declaration
body: <p>I am trying to implement an angular and signalr project. I am getting the sample from <a href="https://medium.com/@rukshandangalla/how-to-notify-your-angular-5-app-using-signalr-5e5aea2030b2" rel="noreferrer">Medium</a></p>
  
  <p>I have installed all the necessary packages and have the code below in the app.component.ts:</p>
  
  <pre><code>import { Component, OnInit } from '@angular/core';
  import { HubConnection } from '@aspnet/signalr';
  
  import { Message } from 'primeng/api';
  
  @Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.css']
  })
  export class AppComponent {
    title = 'PROJECT TITLE';
    base_url = 'http://localhost:8081/';
  
    hubConnecton: HubConnection;
    msgs: Message[] = [];
  
    constructor() { 
  
    }
  
    ngOnInit(): void {
      this.hubConnecton = new HubConnection(this.base_url);
    }
  }
  </code></pre>
  
  <p>But I get an error in the <code>= new HubConnection(this.base_url);</code> with this message: <code>Constructor of class 'HubConnection' is private and only accessible within the class declaration.</code></p>
  
  <p><a href="https://i.stack.imgur.com/D4Xoa.png" rel="noreferrer"><img src="https://i.stack.imgur.com/D4Xoa.png" alt="enter image description here"></a></p>
  
  <p>I need your help with this please. Thank you.</p>