Results 1 to 5 of 5
  1. #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 01:31 PM.

  2. #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.

  3. #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 06:15 PM.

  4. #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.

  5. #5
    Yes. Thanks!

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 10:27 AM.