title: SignalR: How to send data to IConnected.Connect()
body: <p>I implement the <code>Connect()</code> method on <code>IConnected</code> interface to add new connections to the correct groups. This works well except for one thing: in order to add the user to the correct group, I need to send a value to be read in this method. I tried adding property to the client hub:</p>
  
  <pre><code>var uIHub = $.connection.uIHub;
  uIHub.SessionType = "Edit";
  </code></pre>
  
  <p>But it's not accessible from the <code>Connect</code> method: </p>
  
  <pre><code>if (string.IsNullOrEmpty(Caller.SessionType) || Caller.SessionType == "Edit") {
       sessionId = WAFContext.EditSession.SessionId.ToString();                
  } else {
       sessionId = WAFContext.ViewSession.SessionId.ToString();
  }
  Groups.Add(Context.ConnectionId, sessionId);
  </code></pre>
  
  <p><code>Caller.SessionType</code> is always null.</p>
  
  <p>Any suggestions on how to solve this?</p>