Porting VB adapter to Lighstreamer 6.03
Dear all,
i am porting an old .NET Visual Basic adapter (that worked for years and was ported from Lighstreamer 4 to 5 without problems) to Lighstreamer 6.03. The adapter was made in 2010, based on the PROXY_HELLOWORLD demo, and also the name of the adapter has been kept the same, so I have copied the new version 6 folder PROXY_HELLOWORLD in the \adapters folder. In Visual Studio, I replaced the project reference from "DonNetAdapter_N2" to the new "DotNetAdapter.dll" of 6.03.
The project has compiled OK with Visual Studio 2015, Lightstreamer starts and waits for the adapter (waiting for a connection on port 6662/6661..) and goes on when the adapter starts (arriving to: "listening to *:8080"). In my adapter, the Init method gets called by Lighstreamer and also SetListener is called. Lighstreamer and adapter seem connected as usual.
The problem is that, when I open the usual Index.html page that worked with the old version, data are not updated. I can see that my Subscribe function is NOT called as it should, when I open the html page.
If I terminate the adapter, then Lightstreamer gets closed also, meaning that the connection between the two was still alive.
Any suggestions? Thank you! Paolo
Still not working with old pages...
Quote:
Originally Posted by
giuseppe.corti
Dear Giuseppe,
I am Always at the same point. Now, just to be sure, I copied all the .js files in all folders: the same folder of the page, the LS subfolder and the ..\commons\custom subfolder. The files are:
lightstreamer.js
lscommons.js
lsengine.js
lspushpage.js
misc.js.
Nothing changes, I Always have the same error.
I asked my customer to send me the complete \pages folder that now works in production with LS version 5.2, and put it in my test machine with LS 6.0.3. I do not get any error, but values are not updated. I noticed that the file lighstreamer.js is not present in the production machine, I think this was not used in old versions.
I am starting to think that we will have to modify the web pages on our server with the new syntax, what do you think?
Thank you again! Paolo