Hi Guys,
Hope someone can point me in the right direction. I have a couple of questions regarding SSE.
The release notes mentions listeners on SSE : client.AddListener(“customEvent”, s => updateUI(s));
In the docs I don’t see anything of how to send a message to listeners (pub/sub triggers).
I tried the following without success:
public IEventSubscription Events { get; set; }
this.Events.Publish(“customEvent”, request.Message);
How do I send a message to “customEvent” from the server side?
Also, is there a way to register some properties when a user connects to SSE and then using these properties in LINQ to send a message:
Example - On User connection to SSE register the following properties:
Email : user@email.com
Company : ABC Corporation
City : New York
Country : USA
Age : 35
Status : Active
and then sending a message to a specific group using linq ==> Notify( x=>x.Company == “ABC Corporation” &&
x.Age > 30 && x.City == “New York” && x.Status == “Active” , “Hello there from server”)
Thanks in advance.