Angular 2 TypeScript using SignalR
<p>I'm trying to set up an Angular 2 application to use Microsoft's SignalR. I've been following <a href="http://chrome-extension://klbibkeccnjlkjkiokjodocebajanakg/suspended.html#uri=https://blog.sstorie.com/integrating-angular-2-and-signalr-part-2-of-2/" rel="nofollow noreferrer">this tutorial</a>, which although it's good I don't like the fact that jQuery and SignalR are loaded into the application via script tags in the index.html file and also the fact that both libraries do not use their respective Type Definitions.</p>

<p>So with that in mind I've been trying to include jQuery and SignalR in my application using node modules and the respective Type Definitions. I've searched the correct type definition files to use through Microsoft's <a href="http://microsoft.github.io/TypeSearch/" rel="nofollow noreferrer">TypeSearch</a>.</p>

<p>I'm only including jQuery in my application because of SignalR's dependency on jQuery.</p>

<p><strong>jQuery</strong></p>

<p>I first started with installing the jQuery module in my application which I've had to add in the Webpack configuration as well. After this was set up I'm being faced with a "conflict" issue because of Protractor. This is described on <a href="http://www.aureliajsrocks.com/error-variable-must-type-cssselectorhelper/" rel="nofollow noreferrer">Aurelia JS Rocks' website</a>. Although it suggests uninstalling the protractor typings I tried our another solution for now <a href="https://stackoverflow.com/a/39361876/2312637">described in this answer</a>. I don't know if this is the best solution.</p>

<p><strong>SignalR</strong></p>

<p>With regards to SignalR I'm a bit stuck - so far it seems there's no "official" node module provided for SignalR. I'm not sure whether I should include Microsoft's SignalR Javascript Library by downloading the file and including it in my application.</p>

<p>The issue is that I have installed the Type Definitions for SignalR. But now I'm not sure how to go about actually using SignalR since when I type <code>$</code> or <code>jQuery</code> I'm not being suggested <code>.connections</code> for example - which makes sense as this is not part of the jQuery library.</p>

<p>I'm sure that I might be misunderstanding something with regards to getting it "set up". What's the best way to go about using SignalR in an Angular2 TypeScript application?</p>