Salut,
Cagatay Civici wrote:
> Hi,
>
> I'm using one AtmosphereHandler in core and need different broadcasters
> to publish data to different subsets of suspended requests.
>
> I've checked out API and Docs, it seems to be possible but can't figure
> out how, any pointers is appreciated.
I admit that API needs is not trivial. I hope to improve it with 0.5.
Right now as you noted we have this Broadcaster API:
* public BroadcasterFuture<Object> broadcast(Object msg,
Set<AtmosphereResource> subset) {
Do in your AtmosphereHandler, you have to either keeps reference to the
AtmosphereResource included in your Set, or you can get from the
Broadcaster itself the entire Set of AtmosphereResource:
* Iterator<AtmosphereResource> getAtmosphereResources()
and then construct your subset based on the returned value.
I agree that's far from optional and we should think about improving
that API.
Hope that help.
--Jeanfrancois
>
> Regards,
>
> Cagatay
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]