cometd chat question

2 views
Skip to first unread message

Bjarki Bjorgulfsson

unread,
Aug 23, 2008, 2:05:43 PM8/23/08
to cometd...@googlegroups.com
Hello,

In the cometd chat application that comes with Jetty 6 there is a message
sent that contains a list of users that are currently subscribed to the chat
when a client joins the chat channel. Is there a server side client that
generates that message? Where is the logic for that?

Regards,
- Bjarki

Greg Wilkins

unread,
Aug 27, 2008, 7:53:42 PM8/27/08
to cometd...@googlegroups.com


Hi Bjarki

The code for the server side is in
http://svn.codehaus.org/jetty-contrib/branches/jetty-6.1.x/contrib/cometd/demo/src/main/java/org/cometd/demo/ChatService.java


this class is instantiated by

http://svn.codehaus.org/jetty-contrib/branches/jetty-6.1.x/contrib/cometd/demo/src/main/java/org/cometd/demo/BayeuxServicesListener.java


Note that some of the new event listener APIs added in the trunk will make such thing
easier, as you can listen for subscribe events etc.

cheers

Reply all
Reply to author
Forward
0 new messages