title: SignalR, JQuery and Node
body: <p>In a project I'm currently working on, we are using Electron as a host.  In the Electron main process, which is a normal Node process we need to connect to a downstream back-end that has SignalR endpoints.</p>
  
  <p>However, since SignalR is a JQuery module and neither SignalR nor JQuery are supported on Node, we're a bit stuck.  I see the following options:</p>
  
  <ol>
  <li>Look at some of the JQuery implementations in <a href="https://stackoverflow.com/questions/1801160/can-i-use-jquery-with-node-js">node</a> and since
  we use webpack, inject that instead of the normal JQuery into
  SignalR </li>
  <li>Use an unsupported (and old) <a href="https://github.com/maartenba/SignalR.Node" rel="nofollow">Node version of SignalR</a></li>
  <li>Have an invisible hidden browser window which will host the SignalR and JQuery bits and proxy them through to the main process over IPC</li>
  <li>Compile JQuery myself, including only the modules that SignalR require </li>
  <li>Something else, which you kind people will help me with. :)</li>
  </ol>
  
  <p>Number 1 and 2 scare me as I don't want to be debugging API differences or just plain bugs in the implementations.</p>