Hi France,
I can confirm that for using websocket you'll have to write some
Java code. That's what we've done for creating a Jetty Connector
that is able to accept websocket connections from HTML5 apps
running inside browsers.
Then we interact from inside XQuery by using the mechanism of Java
Bindings [1] when we have to send out messages.
We used Jetty package that comes with Basex just adding [2] to the
lib folder.
The only caveat we stumbled upon is, hope I'm recalling the right
story here, that it's not possible to just add a new Connector to
the jetty.xml file because BaseX ignores every connector but the
first one [3] (I ask Christian to possibly confirm or confute
this). Thus we needed to configure the Jetty connector from inside
the Java code which is not optimal for us but works.
Hope this helps.
Ciao,
Marco.
[1]
http://docs.basex.org/wiki/Java_Bindings
[2] jetty-websocket-8.1.18.v20150929.jar
[3]
https://github.com/dcore94/basex/blob/master/basex-api/src/main/java/org/basex/BaseXHTTP.java#L100
On 31/10/2016 10:19, France Baril wrote: