title: Call SignalR hub methods on server side
body: <p>I have followed this tutorial (<a href="https://blogs.msdn.microsoft.com/webdev/2018/02/27/asp-net-core-2-1-0-preview1-getting-started-with-signalr/" rel="nofollow noreferrer">https://blogs.msdn.microsoft.com/webdev/2018/02/27/asp-net-core-2-1-0-preview1-getting-started-with-signalr/</a>) to get a basic chat app built and working.</p>
  
  <p>I now need to update the clients from the server.  In other words, I need to be able to call the hub methods server side.  I have found several examples using older versions of SignalR / .NET, but none of them want to play nicely with ASP.NET Core 2.1.</p>
  
  <p>Please can someone help me out with a pointer (or an example) on how to send messages from the server.  I think the specific bit I am missing is how to get a reference to the active hub from the server side code, so that I can call its methods.</p>
  
  <p>It feels like it should be simple, so I am probably missing something obvious.</p>
  
  <p>Thanks, Nick.</p>