@endel said in Stencyl (HaXe) Extension:
Endel you are a true Master!
C:\HaxeToolkit\haxe\lib>haxelib git haxe-ws https://github.com/colyseus/haxe-ws.git
Installing haxe-ws from https://github.com/colyseus/haxe-ws.git
Library haxe-ws current version is now git
C:\HaxeToolkit\haxe\lib>haxelib list
actuate: [1.8.9]
box2d: [1.2.3]
haxe-ws: [git]
haxelib: [3.3.0]
hxcpp: 3.2.94 [4.0.8]
layout: [1.2.1]
lime-samples: [7.0.0]
lime: 7.2.1 [7.5.0]
openfl-samples: [8.7.0]
openfl: 8.8.0 [8.9.1]
Now to build / test it again:
cd \HaxeToolkit\colyseus-hx\example\openfl
lime build windows
lime test windows
Error:
Can't find a secure source of random bytes. Reason: [file_open,\Device\KsecDD]
Debugging leads me to this part
trace("WebSocketGeneric.hx . initialize ... Before this.key ");
//this.key = Base64.encode(Crypto.getSecureRandomBytes(16)); // This generates the secure source of random bytes
this.key = Base64.encode(haxe.io.Bytes.ofString("ABCDEFGHIJKLMNOP"));
trace("initialize key : "+this.key);
After this ofString-"16-bytes" the error was gone and hand-shake was made!!!
Windows and Android publication worked out of the box.
I will test iOS/Mac later this week!