Results 1 to 2 of 2
  1. #1
    Power Member
    Join Date
    Sep 2013

    Is it possible to send json file to client

    I need to serve my base stock rates to connected clients in JSON format is this possible to send json file to the connected client from remote adapter.

  2. #2
    Join Date
    Feb 2012
    The data model of Lightstreamer is based on items, which are made up of a set of fields. A Data Adapter can inject whatever fields it want for any item and each client can subscribe to the subset of fields it needs.
    Lightstreamer applies many optimization mechanisms based on fields, such as: delta delivery (for any given subscription of a client, only the actually changed fields are sent) and conflation (taking the latest fields from multiple updates and conflate them into a single update).

    This means that using the granularity of a field, ie. letting each field has a basic value (number or string), helps improve things a lot. But each field has a free syntax and semantics.

    So, you can use a field even to store complex objects like XML, JSON or any other object you can achieve via any serialization mechanism. Your Data Adapter can serialize an object (in your caso json) into a field, and your client can deserialize it into a JavaScript object.

    Hope that helps.



Similar Threads

  1. How to JSON Object in Java Adapters as input
    By arunj in forum Adapter SDKs
    Replies: 4
    Last Post: February 10th, 2011, 12:32 PM
  2. Replies: 6
    Last Post: December 7th, 2010, 09:26 AM
  3. Replies: 1
    Last Post: January 18th, 2010, 03:27 PM
  4. Replies: 9
    Last Post: October 19th, 2009, 04:02 PM
  5. How to send params from client to server
    By kanibal210 in forum Client SDKs
    Replies: 1
    Last Post: September 30th, 2009, 08:36 AM

Tags for this Thread


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 04:28 PM.