Hello, Mone!
The class in question is failing a check for cookie support, which results in logging a message 223 ("Cookies on request are required, this class can't guarantee that cookies will be actually sent").
In our main page thread, the class passes this check. Further digging into the source code has shown that the check for cookie support for XSXHRConnection passes iff the client is being run in the context of a browser document. Is this functionality intended?
Browser: Chrome 43
Edit 1:
Our client runs into this issue after sending an initial call to the server, but before reqesting the usual bind_session.js or create_session.js
Here is some relevant log output:
LS Client in main thread (old version)
lightstreamer.protocol | DEBUG | 17:58:20,311 | Connection request generated {[|[URL]https://***********/lightstreamer||LS_phase=2501&LS_cause=new.api…llis=0&LS_client_version=6.1&LS_adapter_set=******&LS_user=******&|POST|][/URL] }
lightstreamer.stream | DEBUG | 17:58:20,311 | Searching for an appropriate connection class {true true true false }
lightstreamer.stream | DEBUG | 17:58:20,312 | Verify if a connection class is appropriate {function k(){this._callSuperConstructor(k);this.k=!1;this.Ab=this.W=this.hc=this.t=null;this.mo=!1;this.P=k} }
lightstreamer.stream | DEBUG | 17:58:20,312 | This class is good {}
lightstreamer.protocol | DEBUG | 17:58:20,313 | Path selected {create_session.js }
lightstreamer.stream | DEBUG | 17:58:20,314 | Sending request using CORS-XHR {[URL]https://***********/lightstreamer/create_session.js[/URL] }
lightstreamer.session | DEBUG | 17:58:20,315 | Connection open to the server {}
LS Client in Web Worker (new version):
lightstreamer.protocol | DEBUG | 18:08:23,982 | Connection request generated {[|https://*********/lightstreamer||LS_phase=7701&LS_cause=new.api…9000&LS_client_version=6.1&LS_adapter_set=****&LS_user=*****&|POST|] }
lightstreamer.stream | DEBUG | 18:08:23,983 | Searching for an appropriate connection {true true true false }
lightstreamer.stream | DEBUG | 18:08:23,984 | Verify if a connection class is appropriate {function k(){this._callSuperConstructor(k);this.k=!1;this.Ab=this.W=this.hc=this.t=null;this.mo=!1;this.P=k} }
lightstreamer.stream | DEBUG | 18:08:23,985 | Cookies on request are required, this class can't guarantee that cookies will be actually sent {}
lightstreamer.stream | DEBUG | 18:08:23,985 | Searching for an appropriate connection class {function c(){this._callSuperConstructor(c);this.k=!1;this.pa=this.Ab=this.t=null;this.Sj=0;this.P=c} }
lightstreamer.stream | DEBUG | 18:08:23,985 | This class is not available on the current environment {}
lightstreamer.stream | DEBUG | 18:08:23,986 | Searching for an appropriate connection class {function l(){this._callSuperConstructor(l);this.error=this.response=this.hc=this.sender=this.t=null;this.k=!1;this.a=0;this.LS_x=this.gz;this.zd=null;this.P=l} }
lightstreamer.stream | DEBUG | 18:08:23,986 | This class is not available on the current environment {}
lightstreamer.stream | DEBUG | 18:08:23,986 | Searching for an appropriate connection class {function k(c){this._callSuperConstructor(k);this.originalTarget=c;this.target=c+b.randomG();this.Kb=new h(this.target,a.packTask(this.Qr,this));this.Ji=0;this.Qn="script_"+b.randomG();this.hf=null;this.wp=!1;this.Eq=!0;this.P=k} }
lightstreamer.stream | DEBUG | 18:08:23,986 | This class is not available on the current environment {}
lightstreamer.stream | DEBUG | 18:08:23,986 | Searching for an appropriate connection class {function q(a){this._callSuperConstructor(q);this.target=p.fk(a);this.Ec=0;this.k=!1;this.Ui=null;d.getFrameWindow(this.target,!0);this.P=q} }
lightstreamer.stream | DEBUG | 18:08:23,986 | This class is not available on the current environment {}
lightstreamer.stream | DEBUG | 18:08:23,987 | Restart connection selector {}
lightstreamer.session | WARN | 18:08:23,987 | Unable to use available connections to connect to server {}
Here are the specific classes which it evaluated, and the results:
Class
Logger Code
Root Cause
XSXHRConnection
223
Context is not a browser document, assumes no cookie support
IEXSXHRConnection
221
No XDomainRequest (obsolete/legacy) functionality
XHRConnection
221
Context is not a browser document
JSONPConnection
221
Context is not a browser document
FrameConnection
221
Context is not a browser document
Edit 2:
Here is our cross-domain policy element for this environment:
[SYNTAX=XML]<cross_domain_policy options_max_age="3600" >
<allow_access_from scheme="*" host="*" port="*" />
</cross_domain_policy>[/SYNTAX]