simplify example

This commit is contained in:
dab 2025-08-15 14:44:58 +00:00
parent fc9d4673cf
commit 7ccfaa2f90

View file

@ -8,7 +8,7 @@ a minimal example:
import { async_run } from 'framerock'
const jsbuild_app_frontend = async function () {
const str_js = `
return `
const on_open = function () {
FRAMEROCK_UTILS.transport_send_bytes('Hello from client!')
return
@ -19,7 +19,6 @@ const on_message = function (data) {
}
FRAMEROCK_UTILS.setup_transport({ on_open, on_message })
`.trim()
return str_js
}
const handle_transport_bytes = function (utils, message) {