-
January 8th, 2022, 02:18 AM
#1
How to simulate Lightstreamer responses
Hi, as we start development of our client and server LS infrastructure, it would be ideal for the client (Angular) to simulate LS responses until the backend is ready. Much like one can mock HTTP calls for example. Any info on this?
Last edited by Megabyzus; January 8th, 2022 at 12:31 PM.
-
January 10th, 2022, 10:34 AM
#2
Lightstreamer Client Library is based on the TLCP application protocol, that uses HTTP and Websocket as transport protocols. Since TLCP is stateful, it is more difficult to mock a server based on it than to mock a server based on stateless paradigms such as HTTP/REST.
At the moment there is no out-of-the-box test framework which provides the required capabilities. So our suggestion is simply to wrap the Lightstreamer Client is a component and then to mock the component in your tests.
-
January 10th, 2022, 03:06 PM
#3
I apologize. I meant 'simulate'...how can we simulate LS responses? I suppose simply kick off an emitter with an interval locally on the client side or does LS provide anything?
Last edited by Megabyzus; January 10th, 2022 at 05:15 PM.
-
January 10th, 2022, 03:41 PM
#4
I’m not sure I understand correctly your question.
Do you want to simulate the requests/responses traveling on the wire when a Lightstreamer client talks to a Lightstreamer server?
If this is your intent, then neither the Lightstreamer server nor the client provides anything out-of-the-box for testing purposes.
-
January 10th, 2022, 05:15 PM
#5
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 05:47 AM.
Bookmarks