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

atmosphere Broadcast #1769

Closed
askucher opened this issue Nov 14, 2014 · 2 comments
Closed

atmosphere Broadcast #1769

askucher opened this issue Nov 14, 2014 · 2 comments

Comments

@askucher
Copy link

Atmosphere broadcast works fine for all types of communication for static url (example: "chatroom")

But we got trouble with several channels. i.e chatroom/football, chatroom/basketball

  1. We created connection with chatroom and tried to subscribe on generic broadcast and got understanding that it works only with websockets. but doesn't work with polling
  2. We found in documentation that we can use {chatroom} mask. But cannot understand how?

Could you provide clear example how to create several channels?

@askucher
Copy link
Author

Please check code below. We don't have issue when we use

@ApplicationScoped
@Singleton
@ManagedService(path = "/chatrooms/", atmosphereConfig = { MAX_INACTIVE + "=120000" , "org.atmosphere.cpr.sessionSupport=true" , "org.atmosphere.cpr.useBuildInSession=true" , "org.atmosphere.cpr.allowQueryStreamAsPostOrGet=true"}) // , "org.atmosphere.cpr.allowQueryStreamAsPostOrGet=true"
public class ChatroomService  extends AbstractService{

But we have trouble with

@ApplicationScoped
@Singleton
@ManagedService(path = "/chatrooms/{room: [a-zA-Z]*}", atmosphereConfig = { MAX_INACTIVE + "=120000" , "org.atmosphere.cpr.sessionSupport=true" , "org.atmosphere.cpr.useBuildInSession=true" , "org.atmosphere.cpr.allowQueryStreamAsPostOrGet=true"}) // , "org.atmosphere.cpr.allowQueryStreamAsPostOrGet=true"
public class ChatroomService  extends AbstractService{

How to send data to specific channel? How to subscribe to specific channel?

@jfarcand
Copy link
Member

Please use the mailing list for question https://groups.google.com/group/atmosphere-framework?pli=1

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