I'll try tapestry-atmosphere, I had a quick look over demo code and it looks 
slick.

I think this or similar ought to be a core feature or at least a proper 
tapestry sub project. It would definitely make tapestry more appealing for 
today's SPAs and mobile apps.

John 

Sent from my iPhone

> On 27 Oct 2016, at 07:40, Peter Hvass <peter.hv...@jamesinnes.com> wrote:
> 
> I've been meaning to have a go with Lance's tapestry-atmosphere - seems
> very straightforward especially for teams with little time to roll their
> own!
> 
> Kalle + Cezary - (if feasible - licenses, projects etc.) would it not be
> worth all of us jumping on Lance's library (for plugging in Atmosphere) and
> possibly submitting patches/fixes so we have one bulletproof and
> fully-featured Tapestrified approach to this?
> 
> Is there an argument that this sort of push-related functionality should be
> built into Tapestry directly for a future version? Push and notifications
> are two headline features for an ever mobile-friendly web..
> 
> Thanks,
> Peter
> On 27 October 2016 at 01:35, Kalle Korhonen <kalle.o.korho...@gmail.com>
> wrote:
> 
>> It's relatively simple like Cezary says. The only potential issue is with
>> authenticating JSR 356 websockets, which may require a bit of gymnastics
>> depending on your needs. If you are using sessions, you can fetch
>> underlying (servlet) session from the handshake request (see
>> http://stackoverflow.com/questions/21888425/accessing-servletcontext-and-
>> httpsession-in-onmessage-of-a-jsr-356-serverendpo/27057359).
>> If you are using sessionless authentication (w/ JWT), you can pass the
>> bearer token around in the sub-protocol header,
>> namely Sec-WebSocket-Protocol (see
>> http://stackoverflow.com/questions/22383089/is-it-possible-to-use-bearer-
>> authentication-for-websocket-upgrade-requests/35108078
>> ).
>> 
>> Kalle
>> 
>> On Wed, Oct 26, 2016 at 2:27 PM, Lance Java <lance.j...@googlemail.com>
>> wrote:
>> 
>>> There's a chat demo in both tapestry-atmosphere and tapestry-cometd
>>> 
>>> Atmosphere
>>> Demo: http://t5atmosphere-lazan.rhcloud.com/
>>> Source:
>>> https://github.com/uklance/tapestry-atmosphere/tree/
>>> master/tapestry-atmosphere-demo
>>> 
>>> Cometd
>>> Demo: http://t5cometd-lazan.rhcloud.com/chat
>>> Source:
>>> https://github.com/uklance/tapestry-cometd/tree/master/
>>> tapestry-cometd-demo
>>> 
>>> On 26 Oct 2016 7:16 p.m., "Qbyte Consulting" <qbyteconsult...@gmail.com>
>>> wrote:
>>> 
>>>> I want to develop a tapestry chat component that uses a WebSocket to
>>> handle
>>>> real time text messages. I need to integrate so that users can see who
>> is
>>>> logged in to the Tapestry app.
>>>> 
>>>> How would I make a class in a Tapestry app a WS endoint that can also
>>>> access my apps Tapestry services as well as handle the WS client?
>>>> 
>>>> John
>>>> 
>>> 
>> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to