Hi yes,

I am recieving the call just fine. Here is my code:

var HOST = 'localhost';
var METADATA_PORT = 6662;
var REQ_RESP_PORT = 6663;
var WRITE_PORT = 6664;

var reqRespStream = net.createConnection(REQ_RESP_PORT, HOST);
var notifyStream = net.createConnection(WRITE_PORT, HOST);
var metadataStream = net.createConnection(METADATA_PORT, HOST);

var MetadataProvider = require('lightstreamer-adapter').MetadataProvider,
DataProvider = require('lightstreamer-adapter').DataProvider,
dataProvider = new DataProvider(reqRespStream, notifyStream, function(){return true;}),
metadataProvider = new MetadataProvider(metadataStream,{
distinctSnapLen: 30,
itemAllowedModes: {distinct: true},
userAllowedModes: {distinct: true}
});

metadataProvider.on('notifyUser', function(request, response){
console.log('doneNotifyUser');
response.success(1000000,false);
});

doneNotifyUser is repeatedly logged to the console.

In the client the StatusWidget displays 'Connecting...' and i see the following logs repeatedly (as it keeps attempting to establish the session):

GET https://localhost/lightstreamer/create_session.js [HTTP/1.1 200 OK 7ms]
GET https://localhost/lightstreamer/create_session.js [HTTP/1.1 200 OK 4ms]
GET https://localhost/lightstreamer/xhr.html [HTTP/1.1 304 Not Modified 2ms]

Again, to be clear, if when the above is happening I simply remove the following line:

client.connectionOptions.setCookieHandlingRequired (true);

and refresh the cleint (without ever restarting my server or the lightstreamer server)

The LS client connects just fine.

I also added the following listener:

client.addListener({
onServerError:
function
(errorCode,errorMessage) {

console.log('Lightstreamer server error');
console.log(errorCode);
console.log(errorMessage);
}
});

but again i do not see any error messages logged from here.

So in summary, the problem seems very related to the line: client.connectionOptions.setCookieHandlingRequired (true);

When this is there I get the call in notifyUser but the subscription is never successful. When i remove this line without changing anything else the client connects perfectly.

As I mentioned with details in a previous post the only thing that is different in the request is the headers. They are different by more than just the cookie which is quite confusing.

Please let me know what you think I should try next?

my conf is as follows:

<use_protected_js>Y</use_protected_js>
<forward_cookies>Y</forward_cookies>

I am using the latest version of firefox: 29.0.1