Question

What I'm asking for may be different than a group push where the collection of clients normally remain relatively constant.

In a notification system, clients can create events that not all other clients are subscribed to. For example, a client indicates that they don't want to receive notifications of new logins, but wants to know when a new photo is published from only certain users. The combinations are endless, and created on the fly, so you can't do a group push.

On each event, a new collection of clients will be created that will receive a notification. Is there a way to accomplish this with a bulk push rather than individual private messages?

Would the way to implement this be to create groups on the fly (on the server side), add clients to that group then send a message to that group?

Thanks.

Was it helpful?

Solution

I don't get why you need groups for this? Clients that subscribe to event foo via:

$.connection.myHub.foo = function() { }

Will be notified of the event. Where we aren't so good right now is with dynamically creating and removing events but that support will be improved.

If you want something dynamic, your only option would be to use groups.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top