package ifneeded ten 0.0.1 [list source [file join $dir ten.tcl]]
package ifneeded ten::test 0.0.1 [list source [file join $dir test.tcl]]
+package ifneeded ten::json 0.0.1 [list source [file join $dir json.tcl]]
method send {message_type args} {
set future [ten::future %AUTO%]
- set call_args [concat $message_type $future $args]
+ $self Send [concat
+ [list list "str $message_type" "str $future"] $args
+ ]
+ }
+
+ method Send {to_send} {
+ puts $options(-send_to_fh) [$self Serialize $to_send]
+ }
+
+ method Serialize {
}
}