Websocket chat and session
Wednesday, 24 October 2018 · 3 messages
MG
Maximilian Gärber24 Oct 2018 14:58 #
Hi,
we've chat working with the 9.1 snapshot. Also private message works but only if the BaseXHTTP class is used (embedded jetty).
If we start the webapp with mvn jetty:run the session info seems to get lost (also in the DBA).
Br,
Max
CG
Christian Grün24 Oct 2018 16:41 #
Hi Max,
Thanks for testing.
Quoted text · Maximilian Gärber · 2 lines
> If we start the webapp with mvn jetty:run the session info seems to > get lost (also in the DBA).
Could you tell us how your pom.xml looks like?
I just updated the basex-api/pom.xml file, and I started the Jetty web server via "mvn jetty:run" from the basex-api directory of the BaseX source code, and everything seems to work.
Cheers
Christian
MG
Maximilian Gärber24 Oct 2018 17:59 #
Hi,
I guess this is because we used to share the dba login and session key from 'cons.xqm' (which is does not exist anymore in 9.x) with our restxq app.
Also, I guess we cloned a DBA version with a typo ;-) which seems already fixed:
https://github.com/BaseXdb/basex/blob/aac439086539813ac12379a5f5ecb05f49dc6ef6/basex-api/src/main/webapp/dba/sessions/sessions.xqm#L45
Br,
Max
Am Mi., 24. Okt. 2018 um 16:41 Uhr schrieb Christian Grün
<christian.gruen at gmail.com>:
Quoted text · Christian Grün · 16 lines
> > Hi Max, > > Thanks for testing. > > > If we start the webapp with mvn jetty:run the session info seems to > > get lost (also in the DBA). > > Could you tell us how your pom.xml looks like? > > I just updated the basex-api/pom.xml file, and I started the Jetty web > server via "mvn jetty:run" from the basex-api directory of the BaseX > source code, and everything seems to work. > > Cheers > Christian
Written for BaseX 9.0. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery