title: Connectiing to SignalR Hub from WebRole
body: <p>How do you connect to a signalR Hub from a web role ?</p>
  
  <p>i have a webrole that connects to an event hub, all the events are received fine, but when i try to pass this data to the web page via my SignalR hub, i get nothing, no errors, and no data at the page, i am using the following to make the connection to the hub</p>
  
  <pre><code>var hubContext = GlobalHost.ConnectionManager.GetHubContext&lt;MyHub&gt;();
  hubContext.Clients.All.SendServerTime("Data To Send");
  </code></pre>
  
  <p>i am using an example that i found that just updates the webpage with the time, nice and simple, and only has a single parameter. the example has a loop in the constructor that sends the time every second, and this updates all the connected pages fine, i have tried the same loop in the web role, and nothing happens.</p>
  
  <p>i have had it working if i connect to a webapi using the code above, but i assumed i should be able to connect directly to the SignalR hub from the WebRole.</p>
  
  <p>any pointers would be very much appreciated.</p>