-
January 9th, 2015, 11:51 AM
#1
LightStreamer JavaScript code minified
The LightStreamer libraries are minified with the option that changes variable names. I had a problem that I just solved to today. I believe it would have helped greatly to have a .debug.js version of those LS files.
Are they available anywhere?
Thanks
-
January 13th, 2015, 09:13 AM
#2
Hi,
We currently do not offer sources nor a js.map file.
Part of the library is open source (see https://github.com/Weswit/utility-toolkit-javascript , https://github.com/Weswit/Lightstrea...ets-javascript and https://github.com/Weswit/utility-logging-javascript ) but we currently do not offer a way to swap classes directly included in our minified file with sources from that project.
What kind of issue did you have to solve?
-
January 14th, 2015, 09:59 AM
#3
The issue I had was that in IE (and Firefox if I'm not mistaken), the browser was taking too long to start streaming and, before it did, a popup saying something like "Unable to find engine".
The issue was because we set it up asynchronously in a bad manner. It was trying to create a more than one engine when more than one topic was being streamed in the same page. Somehow, Chrome handles it and IE not always has this issue and so I had missed it at first.
It is troubling to find such a message and not know where it came from as the stacktrace is completely useless when the code is minified so aggressively.
Thanks
-
January 15th, 2015, 10:51 AM
#4
We have much improved the error handling in version 6 of the library. You now have synchronous exceptions if the error lies in the input parameters and dedicated listeners to detect issues related to an object event.
Also setting up the connection is much easier as you don't have to create/wait for the engine, you just create the client and ask to connect. We also removed the dependencies based on the "when" the various calls have to be made.
I strongly suggest to upgrade to the latest library, even more so if you are starting a new project.
You can find more information here:
Upgrade guide: http://blog.lightstreamer.com/2012/0...pt-client.html
Developer guide: http://www.lightstreamer.com/docs/cl...nt%20Guide.pdf
new API: http://www.lightstreamer.com/distros...nce/index.html
Changelog: http://www.lightstreamer.com/distros...TML#web_client
Also consider that the next version of Lightstreamer is expected before the end of January.
-
January 16th, 2015, 02:11 PM
#5
Similar Threads
-
By craigtype3 in forum General
Replies: 1
Last Post: July 3rd, 2009, 08:26 AM
-
By ProggerPete in forum Client SDKs
Replies: 1
Last Post: August 18th, 2008, 03:23 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 12:18 PM.
Bookmarks