I have a server-sent events handler in ASP.NET
Response.ContentType = "text/event-stream";
if (Response.IsClientConnected == false)
Try to look at SignalR - useful for long polling, server notifications won't be difficult to implement. Uses websockets when available. Yours scenario can be implemented very easily using hubs.