SignalR force an application to be in a certain group
<p>I have a SignalR application.</p>

<pre><code>////Server
public class ChatHub : Hub{
     public override Task OnConnected()
            {
                string name = Context.QueryString["applicationName"].ToString();// Context.User.Identity.Name;

                this.Groups.Add(Context.ConnectionId, name);

                return base.OnConnected();
            }
}

 //// Client
$.connection.hub.url = "http://localhost:40000/signalr";

            $.connection.hub.qs = 'applicationName=app1';
            // Declare a proxy to reference the hub.
            var chat = $.connection.chatHub;

            // Create a function that the hub can call to broadcast messages.
            chat.client.addMessage = function (name, message) {
...
}
</code></pre>

<p>This will associate a connection with an application.
The problem is that the client can change the parameters and listen to messages for app2.  </p>

<p>What all can I do (client / server /both ) to ensure that someone gets assigned to <code>app1</code> and then stays on <code>app1</code>, ie they can't listen to <code>app2</code> messages even if they wanted to?</p>