Skip to content
Browse files

Update haxe remoting sample to current remoting API

  • Loading branch information...
1 parent e126213 commit b10354ca5b5df9599c2d7e268286a3f6d2430864 Paul Hampson committed Nov 9, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 www/haxe_sample.html
View
6 www/haxe_sample.html
@@ -2,10 +2,10 @@
public static function main():Void {
var URL = "http://localhost:8000/haxe_sample.yaws";
- var cnx = haxe.remoting.AsyncConnection.urlConnect(URL);
- cnx.onError = function(err) {
+ var cnx = haxe.remoting.HttpAsyncConnection.urlConnect(URL);
+ cnx.setErrorHandler( 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);

0 comments on commit b10354c

Please sign in to comment.
Something went wrong with that request. Please try again.