Results 1 to 7 of 7

Hybrid View

  1. #1
    I can see that the JavaScript client gets the session id (LS_session) back, but it does not seem to be exposed anywhere, even though Fiddler shows: setPhase(6301);start('S57bc39904f51c4e2T5340330', null, 0, 50000, 'Lightstreamer HTTP Server');loop(0); It must be possible to use this session id on the client right? At least to corelate client and server events?

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    The ID associated with the sessions of Lightstreamer Server is not made available to the client application (neither in JavaScript nor .NET client APIs), instead it is indicated in some callbacks of the Metadata Adapter, as you have already noticed, but in that case the purpose is just to connect subsequent notifications for the same session.

    In a scenario like yours that involves private messaging, a possible trick is to let the job do by the Metadata Adapter. Your clients can subscribe to the same Item name ("MyItem"), and in the getItems method of Metadata Adapter you can translate it in a private Item by pasting the sessionId ("MyItem-<SessionID>").
    Please refer to this thread too.

    About JavaScript library, you are right, the sessionID is sent to the client, but please consider that this is only for internal implementation, and that any application should not care about it.

 

 

Tags for this Thread

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 09:27 AM.