mphx is in alpha and has rough edges. It has not been updated or developed in some time - you might like to evaluate other haxe networking libraries that are under active maintenece.
mphx is a new library made with Haxe to allow for easy creation of multiplayer games. It was based off HxNet, whose code is authored by Matt Tuttle. The code is of a very different structure now. mphx is still 'alpha' and things might break.
mphx allows for creation of both servers and clients, which connect to each other, sending messages. For the client, it works both natively with TCP sockets and in the browser via websockets.
There are examples in the examples folder, for different libraries. (Basic has no external libraries.)
This library is not be dependent on any graphical library (eg. Haxeflixel, OpenFL etc).
Please raise issues if you find issues, however also check other issues to see if they can help. Thanks!
Client
Server
mphx is one of a few Haxe network libraries. That said, these libraries do networking a bit different from me, in a way you might prefer.
client.connect
is called before error handlers (client.onConnectionError = function()
) are setup, the error functions won't throw.Features:
Pong: -