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
17 lines
320 B
JavaScript
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);
|