Hi Andy! Thanks for getting back to me so quickly. I'm indeed using:
I thought as well that it might be an old reply, but all I do is create a database, insert a document, and then query for something that is not there.
I am using BaseX 7.6 if that makes any difference.
Maybe you can see it. Here's the debug of what goes back and forth during the whole session:
S1<<
'1374588092554420000\u0000'
S1>>
'admin\u0000'
S1>>
'713de454606e785a0666bd57e6554891\u0000'
S1<<
'\u0000'
S1: authorized
S1>>
'create db gumby\u0000'
S1<<
'\u0000Database \'gumby\' created in 5.01 ms.\n\u0000\u0000'
response: { result: '',
info: 'Database \'gumby\' created in 5.01 ms.\n',
ok: true }
.S1>>
'\t/people.xml\u0000<people><person>Gumby\nman</person><something>else</something><person>Pokey\nhorse</person></people>\u0000'
S1<<
'Path "people.xml" added in 1.88 ms.\n\u0000\u0000'
response: { ok: true, result: 'Path "people.xml" added in 1.88 ms.\n' }
.S1>>
'\u0000//somethingNotThere\u0000'
S1<<
'0\u0000\u0000'
response: { ok: true, result: '0' }
S1>>
'\u00040\u0000'
S1<<
'\u0000\u0000'
And then it hangs, since the callback isn't called.
If, instead, I do a query that does give results back I get the first value prefixed with \000b, which I believe is intended to indicate that the result is an "element".
S1<<
'\u000b<person>Gumby\nman</person>\u0000\u000b<person>Pokey\nhorse</person>\u0000\u0000\u0000'
response: { ok: true,
result:
[ '\u000b<person>Gumby\nman</person>',
'<person>Pokey\nhorse</person>' ] }
{"ok":true,"result":["\u000b<person>Gumby\nman</person>","<person>Pokey\nhorse</person>"]}