set conn [$connector connect]
+proc jws {args} {
+ set ret {}
+ foreach str $args {
+ lappend ret [ json::write string $str ]
+ }
+ return $ret
+}
+
set f1 [
- $conn send call [ json::write string class_call_handler ] \
- 0 [ json::write string call ] \
- [ json::write string Sys::Hostname ] [ json::write string hostname ]
+ $conn send call {*}[jws class_call_handler 0 call Sys::Hostname hostname]
]
set ready_args ""
$f1 free
is $ready_args $my_host "hostname returned ok via on_ready"
+
+done_testing