-
March 10th, 2011, 07:03 AM
#1
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
-
March 11th, 2011, 09:26 AM
#2
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
-
By phamminh05 in forum Client SDKs
Replies: 7
Last Post: August 13th, 2019, 05:25 PM
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 09:45 AM.
Bookmarks