Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Access AtmosphereHandlers #10

Closed
eloyot opened this issue Mar 27, 2012 · 5 comments
Closed

Cannot Access AtmosphereHandlers #10

eloyot opened this issue Mar 27, 2012 · 5 comments

Comments

@eloyot
Copy link

eloyot commented Mar 27, 2012

I would like to have the ability to get at the broadcasters on the server side via my servlet code so I can send messages to connected clients. Right now I don't see any way to do this. Could the server instance (Nettosphere) provide methods to access the AtmosphereHandler instances or provide a way of hooking up server side listener instances.

@jfarcand
Copy link
Member

jfarcand commented Apr 3, 2012

Salut, sorry for the delay. Is there a reason why you don't use Broadcaster instead? Broadcaster will proper;ly invoke the AtmosphereHandler.

@eloyot
Copy link
Author

eloyot commented Apr 3, 2012

Hi,

I don't have a handle to the Broadcaster either. I would like to broadcast
from a servlet. How can I get access to a Broadcaster?

Thanks,

Ed

On Tue, Apr 3, 2012 at 1:44 PM, Jeanfrancois Arcand <
reply@reply.github.com

wrote:

Salut, sorry for the delay. Is there a reason why you don't use
Broadcaster instead? Broadcaster will proper;ly invoke the
AtmosphereHandler.


Reply to this email directly or view it on GitHub:
#10 (comment)

@jfarcand
Copy link
Member

jfarcand commented Apr 3, 2012

BroadcasterFactory.getDefault().get(...) . You are using both Servlet and AtmosphereHandler?

@eloyot
Copy link
Author

eloyot commented Apr 3, 2012

Thanks, that looks like what I need. I didn't realize the factory could
look up existing instances.

On Tue, Apr 3, 2012 at 4:28 PM, Jeanfrancois Arcand <
reply@reply.github.com

wrote:

BroadcasterFactory.getDefault().get(...) . You are using both Servlet and
AtmosphereHandler?


Reply to this email directly or view it on GitHub:
#10 (comment)

@jfarcand
Copy link
Member

jfarcand commented Apr 3, 2012

Closing as fixed.

@jfarcand jfarcand closed this as completed Apr 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants