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
14 lines
309 B
JavaScript
14 lines
309 B
JavaScript
$_.start(e => {
|
|
switch(e.type) {
|
|
case "actor_started":
|
|
console.log(json.encode(e))
|
|
$_.connection(e => console.log(json.encode(e)), e.actor) // get connection info
|
|
|
|
send(e.actor, {message: "Hello!"})
|
|
|
|
$_.couple(e.actor)
|
|
|
|
$_.stop(e.actor)
|
|
}
|
|
}, "tests/underling.js");
|