Closed catskul closed 4 years ago
uscxml-browser is an interpreter of SCXML files. There is no HTML involved as such. It does listen on a TCP port as required for the basichttp I/O processor mandated by the W3C standard.
If you want a web interface accessible from an HTML browser, there is a uscxml-debugger.html
HTML page which communicates with the uscxml-browser
instance via long-polling, asynchronous HTTP requests. However that interface lay dormant for quite some time as I failed to find a suitable student to revive it after a substantial refactoring some time last year.
Thanks for the clarification. I'm still not clear on it's purpose, but that's probably just because I'm unfamiliar with the W3 standard on scxml. I'm guessing it's clearer for those who are familiar.
So as best I can tell uscxml-browser is meant to be an http interface for the uscxml interpreter run on a scxml file. However the example in the readme file:
./uscxml-browser https://raw.githubusercontent.com/tklab-tud/uscxml/master/test/w3c/null/test436.scxml
Runs then exits outputting:
I've tried it on other scxml files like the example on the wikipedia page as an alternative:
In this case the program stays running waiting for requests:
but then it's completely unclear what request should look like. localhost:5080 returns 404 not found, and the program on the command line prints:
I edited the Http server to output valid "servelets" and get a list:
None of which produces anything useful if I hit them with the browser.
Is there some other hints as to how the uscxml-browser is supposed to work, what it's purpose is, that I'm missing? Or perhaps I'm doing something obviously wrong?