Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Mar 2011
    Location
    roma
    Posts
    9

    chat and private message

    hi

    is possibile to send a message only one client (one to one comunication ) like in private message with LightStream ?

    thanks

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    you can do that by associating an item to each user on you metadata adapter (see MetadataProvider).

    Please take a look to the Basic Instant Messenger Demo;
    you can find the sources of the adapter in the Lightstreamer distribution under LS_HOME/DOCS-SDKs/sdk_adapter_java/examples/Messenger_Adapters/src_metadata/messenger_demo/adapters

    NOTE: the metadata adapter of the demo is not complete; you should add user authentication implementing the notifyUser method and by adding the missing check in the checkIMName method.
    NOTE: the demo assumes the client subscribes to the specific item. You may choose to use the same item name client-side and then translate it to the user-specific item on the getItems method.

    take also a look to these discussions: http://www.lightstreamer.com/vb/showthread.php?t=61 & http://www.lightstreamer.com/vb/showthread.php?t=890

 

 

Similar Threads

  1. Chat Demo in Flash???
    By phamminh05 in forum Client SDKs
    Replies: 7
    Last Post: August 13th, 2019, 06:25 PM

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 04:30 AM.