Re: Tapestry Server Push/Web Socket/Comet implementation

2013-09-12 Thread Lance Java
It depends on how you want to use it. If you just simply want external services to push JSON to the client and then write a whole lot of javascript to update the DOM then that's fine. With tapestry-cometd I wanted to the option to write ZERO javascript by leveraging tapestry component events and t

Re: Tapestry Server Push/Web Socket/Comet implementation

2013-09-12 Thread Norman Franke
I've decided to start from scratch since there are lots of concepts to map. It was pretty trivial to get Tapestry to delegate to the Atmosphere servlet (or even the MeteorServlet) like tapestry-cometd does. That seems to work really well, so thanks for that! Next I wanted to be able to @Inject

RE: Tapestry Server Push/Web Socket/Comet implementation

2013-09-05 Thread Ben Titmarsh
Sounds like good advice! I checked out your example implementation so will play around with it tomorrow. Thanks for all of the effort that you put into this library. > Date: Thu, 5 Sep 2013 19:18:11 +0100 > Subject: Re: Tapestry Server Push/Web Socket/Comet implementation > From

RE: Tapestry Server Push/Web Socket/Comet implementation

2013-09-05 Thread Ben Titmarsh
o create a per-member-id topic? At the very least I imagine needing a per-game topic so that I can have lots of games running concurrently without having too much dead traffic for each client. Cheers, Ben. > Date: Thu, 5 Sep 2013 13:46:08 +0100 > Subject: RE: Tapestry Server Push/

Re: Tapestry Server Push/Web Socket/Comet implementation

2013-09-05 Thread Lance Java
Note that if you're smart about naming your topics, you can use wildcards. eg: if user1 subscribes to /games/game1/user1 and user2 subscribes to /games/game1/user2 you can send a message to both users by publishing to /games/game1/* or you can send a message to all game users via /games/** https:

RE: Tapestry Server Push/Web Socket/Comet implementation

2013-09-05 Thread Lance Java
If you need to target individual users then you will definitely need a topic per user. For game global messages you may decide to use a game topic, or you probably know the users in a game and just send a message to each user topic.

RE: Tapestry Server Push/Web Socket/Comet implementation

2013-09-05 Thread Lance Java
Hi Ben, I'm sure tapestry-cometd can handle this. Just add a PushTarget component to each user's page providing a "topic" and an "event". Messages are pushed to the PushTargets via PushManager.broadcast(topic, message). Every message will fire the component event and will either return a block or

RE: Tapestry Server Push/Web Socket/Comet implementation

2013-09-05 Thread Ben Titmarsh
ers, Ben. > Date: Wed, 4 Sep 2013 08:43:15 +0100 > Subject: Re: Tapestry Server Push/Web Socket/Comet implementation > From: lance.j...@googlemail.com > To: users@tapestry.apache.org > > Hi Ben, > > Yes, tapestry-cometd is my creation… have you actually given it a go? >

Re: Tapestry Server Push/Web Socket/Comet implementation

2013-09-04 Thread Lance Java
I haven't done much research into Atmosphere… I found the docs to be quite cryptic and couldn't quickly find what I wanted. tapestry-cometd relies on a few concepts, If atmosphere has these same concepts then the switch will be easy, if not I guess it will be more difficult. 1. A Push Session - A

Re: Tapestry Server Push/Web Socket/Comet implementation

2013-09-04 Thread Norman Franke
Lance, Interesting timing. I'm now also in need of a push solution. I did try tapestry-cometd and it is very nice. As noted, I was wanting to use Atmosphere for the greatly simplified Javascript support and the support of multiple protocols. I was thinking about modifying tapestry-cometd to u

Re: Tapestry Server Push/Web Socket/Comet implementation

2013-09-04 Thread Kalle Korhonen
On Wed, Sep 4, 2013 at 12:43 AM, Lance Java wrote: > provide this module myself in the fuure. As with the other tapestry > comitters, I have a day job and a social life to juggle with contributing > to open source. For the moment your options are to use tapestry-cometd or > I thought this is the

Re: Tapestry Server Push/Web Socket/Comet implementation

2013-09-04 Thread Lance Java
Hi Ben, Yes, tapestry-cometd is my creation… have you actually given it a go? Is there something you need it to do that it can't? I'm interested to hear your use case and if there's something that tapestry-cometd can't do, I can help you out. I'll give you a bit of a history lesson on how it evol

Tapestry Server Push/Web Socket/Comet implementation

2013-09-03 Thread Ben Titmarsh
Hi Guys, Is there any plan to bring some kind of Server Push implementation to Tapestry? I found a comet implementation (by Lance I think?) from a while back but haven't seen much movement in this area recently. Cheers, Ben.

Re: Tapestry Server Push/Web Socket/Comet implementation

2013-09-03 Thread Martin Kersten
Lance talked about that this very same approach can be used to bind atmosphere into the picture. This library would provide socket.io support which others on this list claimed to have used successfully (check the archive and search for atmosphere). 2013/9/3 Boris Horvat > I am using it and I ca

Re: Tapestry Server Push/Web Socket/Comet implementation

2013-09-03 Thread Boris Horvat
I am using it and I can say that it does job pretty well (for me at least - my requirements are very basic at the moment but it will change eventually I guess) On Tue, Sep 3, 2013 at 8:19 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 03 Sep 2013 11:58:04 -0300, Ben Titm

Re: Tapestry Server Push/Web Socket/Comet implementation

2013-09-03 Thread Thiago H de Paula Figueiredo
On Tue, 03 Sep 2013 11:58:04 -0300, Ben Titmarsh wrote: Hi Guys, Hi! Is there any plan to bring some kind of Server Push implementation to Tapestry? I found a comet implementation (by Lance I think?) from a while back but haven't seen much movement in this area recently. I've never

Re: Tapestry Server Push/Web Socket/Comet implementation

2013-09-03 Thread Martin Kersten
It wont make it into 5.4. Mr Ship talked about it back some time. You might want to take a look Art athmospere. You should be able to include it into Tapestry following the example oft cometd. This will bring you socket.iosupport which should you bring everything for Server side push . Am Dienstag