Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (15 sloc) 0.429 kB
class Application {
public static function main():Void {
var URL = "http://localhost:8000/haxe_sample.yaws";
var cnx = haxe.remoting.AsyncConnection.urlConnect(URL);
cnx.onError = function(err) {
trace("Exception : " + Std.string(err));
};
var a = {a:"foo", b:"bar", c:[1,2,3]};
var b = "hello, Erlang!";
cnx.echo.call([a, b], display);
}
static function display(v) {
trace(v);
}
}
Jump to Line
Something went wrong with that request. Please try again.