-
November 4th, 2013, 09:39 AM
#1
Hi,
I confirm there is no such direct way to do request/reply with Lightstreamer. You should use the sendMessage for the request and use a dedicated item to get asynchronous responses.
A trick could be used to obtain the request/reply infrastructure but we do not officially suggest to use it as it may create confusion in the error handling code. When you receive a message from a client you can handle it by throwing a CreditsException: the code and message of the exception are forwarded to the client and exposed by our API
Note that the same facilities are available on all the SDKs.
In the future, the sendMessage infrastructure will be extended to support custom messages on the OK responses (but not in the very short term).
see
http://www.lightstreamer.com/docs/cl...ml#sendMessage
http://www.lightstreamer.com/docs/cl...eListener.html
http://www.lightstreamer.com/docs/ad...a.lang.String)
http://www.lightstreamer.com/docs/ad...Exception.html
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
-
Forum Rules
All times are GMT +1. The time now is 06:08 PM.
Bookmarks