title: Does SignalR Server Sent Events implementation occupy thread for each connection?
body: <p>When I use signalR which falls back to ServerSentEvents, and I can see on fiddler an open connection to the server waiting for chunked data, does it mean a thread is being occupied on the server at this time?</p>
  
  <p>If so, it is not quite efficient as far as I see it..</p>
  
  <p>For example I would not write such code in the server that blocks a thread:</p>
  
  <pre><code>public ActionResult ServerSentEvents
  {
      DateTime currentdate = DateTime.Now;
      Response.ContentType = "text/event-stream";
      while (currentdate.AddMinutes(1) &gt; DateTime.Now)
      {
          Response.Write(string.Format("data: {0}\n\n", DateTime.Now.ToString()));
          Response.Flush();
          System.Threading.Thread.Sleep(1000);
      }
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/qEv6B.png" alt=""></p>
  
  <p>Could it be that SignalR does something more efficiently here?</p>