mardi 7 mars 2017

as3-websocket-server with https connections

I downloaded the library as3-websocket-server ( ) for a desktop air app and it works fine on Chrome. When I use Firefox it is ok for http pages, while I get a "SecurityError: The operation is insecure." message if I test it on https pages.

I read that I should use wss:// rather than ws://, but the AIR server doesn't work with this protocol.

I tried to convert all "Socket" to "SecureSocket" in the Air App but I get an error: "1118: Implicit coercion of a value with static type to a possibly unrelated type";

Any idea on how to have the server available for both protocols? On client side I could just check if I'm on http or https and call the right websocket.


Aucun commentaire:

Enregistrer un commentaire