### ----------------------------------------------------
### -- Proc::ZMQed
### -- Licenses: Artistic-2.0
### -- Authors: Anton Antonov
### -- File: examples/JavaScript-evaluations.raku
### ----------------------------------------------------
#!/usr/bin/env raku
use v6.d;

use Proc::ZMQed::JavaScript;

my Proc::ZMQed::JavaScript $jsProc .= new(url => 'tcp://127.0.0.1', port => '5560');

$jsProc.start-proc(setup-lines => Empty):!proclaim;

my $jsRes = $jsProc.evaluate('Math.sqrt(323)');
say $jsRes;

$jsProc.terminate;


