title: How do i receive messages periodically from Signalr to all Clients automatically ,without client input?
body: <p>I am new to SignalR. I need to send message from SignalR to all connected clients automatically with some delay without client input ?</p>
  
  <p>The above process has to be repeated, while recursively?</p>
  
  <p>Is it possible?</p>
  
  <p>Without client input, the SignalR  can send messages automatically to clients repeatedly?</p>
  
  <p>This is my JavaScript cleint code:</p>
  
  <pre><code>$(function () {
      var chat = $.connection.timehub;
      $.connection.hub.start();
      chat.client.broadcastMessage = function (current) {
          var now = current;
          console.log(current);
          $('div.container').append('&lt;p&gt;&lt;strong&gt;' + now + '&lt;/strong&gt;&lt;/p&gt;');
      }
  };
  </code></pre>
  
  <p>and this is my Timehub</p>
  
  <pre><code>public class timehub : Hub
  {
      public void Send(string current)
      {
          current = DateTime.Now.ToString("HH:mm:ss:tt");
          Clients.All.broadcastMessage(current);
  
          System.Threading.Thread.Sleep(5000);
          Send(current);
      }
  }
  </code></pre>
  
  <p>and this is my Owin Startup Class:</p>
  
  <pre><code>public class Startup
  {
      public void Configuration(IAppBuilder app)
      {
          app.MapSignalR();
  
      }
  }
  </code></pre>
  
  <p>Could anyone provide me an solution for this?</p>