// PUT: api/Subscriptions/5 public void Put(string id) { ServerSentEvent subscription = null; lock (_subscriptions) { _subscriptions.TryGetValue(id, out subscription); } if (subscription != null) { subscription.Send("Event!"); } }
internal static void Send(string s) { SSE.Send(s); }