Support for client-side publish acknowledgment
----------------------------------------------
Key: COMETD-371
URL:
http://bugs.cometd.org/browse/COMETD-371
Project: CometD
Issue Type: Improvement
Components: java-api, java-client, javascript-common
Affects Versions: 2.4.1
Reporter: Simone Bordet
Fix For: 2.5.0
There is currently no easy way to know if a client-side publish succeeded or not (i.e. if the server replied to that publish): must write an extension and match the message id of the response with that of the publish.
Suggested API for the JS client:
{code:javascript}
cometd.publish('/foo', {}, function(response)
{
if (response.successful)
...
}
{code}
Likewise, we could improve BayeuxClient in this way:
{code:java}
bayeuxClient.getChannel("/foo").publish(data, new MessageListener()
{
...
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
http://bugs.cometd.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira