[JIRA] (COMETD-371) Support for client-side publish acknowledgment

2 views
Skip to first unread message

Simone Bordet (Created) (JIRA)

unread,
May 15, 2012, 10:44:25 AM5/15/12
to comet...@googlegroups.com
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


Simone Bordet (Resolved) (JIRA)

unread,
May 30, 2012, 9:04:25 AM5/30/12
to comet...@googlegroups.com

[ http://bugs.cometd.org/browse/COMETD-371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simone Bordet resolved COMETD-371.
----------------------------------

Assignee: Simone Bordet
Resolution: Fixed

Implemented.

> 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
> Assignee: Simone Bordet
Reply all
Reply to author
Forward
0 new messages