simplify example
This commit is contained in:
parent
fc9d4673cf
commit
7ccfaa2f90
1 changed files with 1 additions and 2 deletions
|
@ -8,7 +8,7 @@ a minimal example:
|
||||||
import { async_run } from 'framerock'
|
import { async_run } from 'framerock'
|
||||||
|
|
||||||
const jsbuild_app_frontend = async function () {
|
const jsbuild_app_frontend = async function () {
|
||||||
const str_js = `
|
return `
|
||||||
const on_open = function () {
|
const on_open = function () {
|
||||||
FRAMEROCK_UTILS.transport_send_bytes('Hello from client!')
|
FRAMEROCK_UTILS.transport_send_bytes('Hello from client!')
|
||||||
return
|
return
|
||||||
|
@ -19,7 +19,6 @@ const on_message = function (data) {
|
||||||
}
|
}
|
||||||
FRAMEROCK_UTILS.setup_transport({ on_open, on_message })
|
FRAMEROCK_UTILS.setup_transport({ on_open, on_message })
|
||||||
`.trim()
|
`.trim()
|
||||||
return str_js
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const handle_transport_bytes = function (utils, message) {
|
const handle_transport_bytes = function (utils, message) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue