How to run the Haxe server and client example?

匆匆过客 提交于 2019-12-24 12:05:58

问题


I am new to Haxe.

I want to try to run the example from here:

http://old.haxe.org/doc/flash/chat

but I do not know how to run.

I just type

haxe app.hxml

and I have no idea how to continue.

Could someone tell me how to run it?


回答1:


Running haxe app.hxml creates two files: server.n and client.swf.

Double click server.bat (which just starts the server via neko server.n). Now any number of clients can connect to the server. For testing, just run the client.hx twice with the standalone Flash Player. After you've entered a user name in each window, any message you submit on either client will appear on the other client as well.



来源:https://stackoverflow.com/questions/35071564/how-to-run-the-haxe-server-and-client-example

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!