example 'clog-demo': fix double connection id; revisions

This commit is contained in:
pls.153 2025-04-20 10:45:37 +02:00
parent f291e55bae
commit 91ef9f4fdc
6 changed files with 14 additions and 19 deletions

View file

@ -5,7 +5,7 @@
:components ((:file "lisp/package")
(:file "lisp/ini")
(:file "lisp/ui-vars")
(:file "lisp/swank-quicklisp")
#+mobile (:file "lisp/swank-quicklisp")
(:file "lisp/eval")
(:file "lisp/clog-bridge")
(:file "clog-assets/demos/01-demo")

View file

@ -12,12 +12,6 @@ Item {
width: parent.width
height: parent.height - reload.height
visible: !busy.visible
onLoadingChanged: {
if (loadRequest.status === WebView.LoadSucceededStatus) {
Lisp.call("clog:webview/on-new-connection")
}
}
}
Button {

View file

@ -16,7 +16,7 @@ Item {
client.sendTextMessage(message)
}
onClientConnected: {
onClientConnected: (webSocket) => {
client = webSocket
webSocket.objectName = ++counter
main.log("[new] " + counter)

View file

@ -3,7 +3,7 @@ Prepare
-------
First you need to patch ASDF from ECL android. So, switch to where you have
ecl-android installed, and edit file: 'contrib/asdf/asdf.lisp'.
ecl-android installed, and edit file: `contrib/asdf/asdf.lisp`.
Find the following function, and replace it with this code:
```

View file

@ -29,12 +29,12 @@ for installing the Slime sources where this example can find them.
`~/quicklisp/local-projects/` directory:
[CLOG for mobile](https://gitlab.com/eql/clog-for-mobile/-/blob/main/clog-2.2.tgz).
If you want to run this example on the desktop, you need to uncomment the Qt
WebEngine dependency in [../../src/lqml.pro](../../src/lqml.pro) and rebuild
the `lqml` executable. Additionally you need to clear the ECL cache of CLOG
(see `~/.cache/common-lisp/ecl-...`), because the CLOG desktop version for LQML
is different from the standard version (see `#+mobile` in CLOG fork, which is
also needed on the desktop, if used with LQML).
If you want to run this example on the desktop (only tested with Qt6), you need
to uncomment the Qt WebEngine dependency in [../../src/lqml.pro](../../src/lqml.pro)
and rebuild the `lqml` executable. Additionally you need to clear the ECL cache
of CLOG (see `~/.cache/common-lisp/ecl-...`), because the CLOG desktop version
for LQML is different from the standard version (see `#+mobile` in CLOG fork,
which is also needed on the desktop, if used with LQML).

View file

@ -2,9 +2,10 @@
(require :asdf)
(progn
(pushnew :mobile *features*)
(asdf:load-system :clog)
(setf *features* (remove :mobile *features*)))
(push (merge-pathnames "./")
asdf:*central-registry*)