Haxe server-client exchange on all platforms

838 views Asked by At

I'm developing client-server application on haxe. I want client side to be compiled to javascript from haxe, but there is a big chance, that other languages will be also needed. I cannot find universal way of doing it. Though, I can make it with websockets, when it comes to jabascript, and on haxe Sockets, in every other language.

So question is: is there a way to make a client-server application on haxe, without branching code for different platforms?

1

There are 1 answers

4
Mark Knol On BEST ANSWER

What you are looking for is Haxe Remoting, which is part of the Standard Library

Haxe remoting is a way to communicate between different platforms. With Haxe remoting, applications can transmit data transparently, send data and call methods between server and client side.

relevant sources:
http://haxe.org/manual/std-remoting.html
http://api.haxe.org/haxe/remoting/

As side note, if you are looking into creating a actual website with client/server in one project you might want to look into http://www.ufront.net