actionscript 3 - SecureSocket.isSupported == false -
i try use securesocket securesocket.issupported == false. when use simple socket ok.
did use securesocket?
here code: security.allowdomain(''); security.allowinsecuredomain(""); security.loadpolicyfile("xmlsocket://" + host + ':' + port + "/crossdomain.xml");
if(securesocket.issupported) { c = new securesocket(); receivebuffer = new bytearray(); receivebuffer.endian = endian.little_endian; c.addeventlistener(event.close, closehandler); c.addeventlistener(ioerrorevent.io_error, ioerrorhandler); c.addeventlistener(securityerrorevent.security_error, securityerrorhandler); c.addeventlistener(event.connect, connecthandler); } else { try { c = new securesocket(); } catch(e:error) { trace(e.tostring()); } }
later have error: [swf] /assets/flash/ssl/main.swf - 63,146 bytes after decompression error: request resource @ tlssocket://game9.lgr.su:8081 requestor https://game9.lgr.su/assets/flash/ssl/main.swf has failed because server cannot reached.
* security sandbox violation * connection game9.lgr.su:8081 halted - not permitted https://game9.lgr.su/assets/flash/ssl/main.swf
the problem on server side. our server side on node js listening not secure socket getting secure connection. when server responded not encrypted content socket on client side closed. make better server.
Comments
Post a Comment