Files
cell/tests/portal.js
John Alanbrook 847a3ef314
Some checks failed
Build and Deploy / package-dist (push) Blocked by required conditions
Build and Deploy / deploy-itch (push) Blocked by required conditions
Build and Deploy / deploy-gitea (push) Blocked by required conditions
Build and Deploy / build-linux (push) Failing after 55s
Build and Deploy / build-windows (CLANG64) (push) Failing after 10m50s
threading
2025-03-10 22:49:48 -05:00

17 lines
320 B
JavaScript

// Test to create a portal
var password = "abc123"
$_.portal(e => {
console.log(`got message with password ${e.password}`)
console.log(json.encode(e))
if (e.password !== password)
throw new Error("Password does not match.");
console.log(`passwords matched.`)
$_.send(e, {
actor: $_
});
}, 5678);