Insecure WebSocket smartfox 2x

hi everyone,
i build html5 target, connect to smartfox server . When i upload to facebook apps, i see error secure
Mixed Content: The page at ‘’ was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint ‘ws://’. This request has been blocked; this endpoint must be available over WSS.
can you help me fix it? thank you!

same problem here

in package; Socket class

var schema = secure ? “wss” : “ws”;

i changed secure to true but it also doesnt work :confused:

I have just made a change to help change the socket type automatically if you are using HTTPS:

I assume that the socket server has to be able to support secure WebSocket, I’m not sure how that changes the protocol

Use haxe-ws lib , I’ve tested with openfl android target and neko connecting to nodejs websocket server