title: SignalR - OnConnect() authorization - how to disconnect unauthorized user?
body: <p>In my hub, I have something like this (pseudocode):</p>
  
  <pre><code>public override Task OnConnected()
  {
      var isLegal = Authorize();
      if (!isLegal) //not authorized
      {
          //how do I deny him this connection?
      }
      return base.OnConnected();
  }
  </code></pre>
  
  <p>How to disconnect/deny connection to a user?</p>