Skip to content

barisyild/sfs2x-api-haxe

 
 

Repository files navigation

SmartFoxServer 2X Haxe Client API (Very Experimental)

OpenFL Platforms

Platform Support
HTML5 WS/WSS
Flash TCP Socket/WS/WSS/BlueBox
Adobe AIR TCP Socket/WS/BlueBox
Windows TCP Socket/WS/WSS/BlueBox
Linux Untested
Mac OS Untested
Android Untested
iOS Untested

Haxe Platforms

Platform Support
Python TCP Socket/WS/WSS
Neko TCP Socket/WS/WSS
HashLink TCP Socket/WS/WSS
CPP TCP Socket/WS/WSS
Lua Untested
C# Untested
Java Untested
PHP FAIL (no thread support!)

Pull requests are welcome

Let me know how it works on other targets.

Pure Haxe translation of the as3 client for the Smartfox server http://www.smartfoxserver.com/

Warning:

BlueBox is not optimized for multi threading, not recommended to use.

UDP Socket Support Dropped! (If you need udp socket feature, please open issue.)

Compression does not work on platforms other than OpenFL.

Currently Working With:

haxe: 4.3.1

haxe-crypto: 0.0.7

colyseus-websocket: 1.0.12


Instructions:

Installation

haxelib git sfs2x-api-haxe https://github.com/barisyild/sfs2x-api-haxe.git

add in your project.xml:

<haxelib name="sfs2x-api-haxe"/>

Then you can use it like the as3 api, check the as3 exemples there: http://docs2x.smartfoxserver.com/ExamplesFlash/introduction

TODO:

  • test app
  • improve typing

Special Thanks

Originally created by Vincent Blanchet