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 > > >