title: SignalR send message to single connectionId
body: <p>I have an asp.net classic website. ive got SignalR basic functionality to work (where one client send messages to rest of the clients). but now i want to send Messages only to specific connectionsIDs. </p>
  
  <p>my Hub : </p>
  
  <pre><code>**    [HubName("chatHub")]
      public class ChatHub : Hub 
      {
          public static List&lt;string&gt; messages = new List&lt;string&gt;();
  
          public void GetServiceState()
          {
              Clients.updateMessages(messages);
          }
  
          public void UpdateServiceState()
          {
              messages.Add(DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss"));
  
              Clients.updateMessages(messages);
          }
  
      }**
  </code></pre>
  
  <p>Asp code: </p>
  
  <pre><code>        &lt;script type="text/javascript"&gt;
              $(function () {
                  // creates a proxy to the health check hub
  
                  var healthCheckHub = $.connection.chatHub;
                  console.log($.connection.hub)
                  // handles the callback sent from the server
                  healthCheckHub.updateMessages = function (data) {
                      $("li").remove();
  
                      $.each(data, function () {
                          $('#messages').append('&lt;li&gt;' + this + '&lt;/li&gt;');
                          console.log($.connection);
                      });
                  };
  
                  $("#trigger").click(function () {
                      healthCheckHub.updateServiceState();
                  });
  
                  // Start the connection and request current state
                  $.connection.hub.start(function () {
                      healthCheckHub.getServiceState();
                  });
  
  
              });
  </code></pre>
  
  <p></p>
  
  <p>Problem is i dont really know how to send to one specific ConnectionID with hub, since Clients.updateMessages(messages); send messages to all of them. how do i solve this? </p>
  
  <p>P.S: ive already looked at: <a href="https://stackoverflow.com/questions/7616983/send-server-message-to-connected-clients-with-signalr-persistentconnection">Send server message to connected clients with Signalr/PersistentConnection</a></p>
  
  <p>and <a href="http://riba-escapades.blogspot.dk/2012/05/signalr-send-messages-to-single-client.html" rel="noreferrer">http://riba-escapades.blogspot.dk/2012/05/signalr-send-messages-to-single-client.html</a></p>
  
  <p>that didnt worked. </p>