title: Does my SignalR Hub class need any methods?
body: <p>According to the documentation I have read, in order to send a message to a client, I just need to call:</p>
  
  <pre><code>var hubContext = GlobalHost.ConnectionManager.GetHubContext&lt;MyHub&gt;();
  hubContext.Clients.All.foo(msg);
  </code></pre>
  
  <p>So... does the Hub class need any methods? If not, then all I have is an empty class:</p>
  
  <pre><code>public class MyHub : Hub 
  {
  }
  </code></pre>
  
  <p>which just seems like a pointless setup. Am I implementing this incorrectly? because it makes more sense to have methods in a hub class, and then call those methods to send a message to the client.</p>
  
  <p>Also, in the hub itself, I can access Context.connectionId, so that I can get the requestor's connection Id and then stop the message from being fired to that client.... If a Hub shouldn't have methods, then is there a way to access the requestor's connection id?</p>