Files
cell/tests/send.js
John Alanbrook efd98460c5
Some checks failed
Build and Deploy / build-macos (push) Failing after 4s
Build and Deploy / build-windows (CLANG64) (push) Has been cancelled
Build and Deploy / package-dist (push) Has been cancelled
Build and Deploy / deploy-itch (push) Has been cancelled
Build and Deploy / deploy-gitea (push) Has been cancelled
Build and Deploy / build-linux (push) Has been cancelled
-u is no longer available as a global, only within the running actor code; enable passing args to use
2025-05-22 18:59:57 -05:00

10 lines
256 B
JavaScript

var os = use('os')
$_.start(e => {
console.log(json.encode(e.actor))
send(e.actor, { message: "Hello! Good to go?" }, msg => {
console.log(`Original sender got message back: ${json.encode(msg)}. Stopping!`)
$_.stop()
})
}, "tests/reply.js")