Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ajaxRequest.onreadystatechange function called twice for each message response #1414

Closed
tony1715 opened this issue Jan 1, 2014 · 1 comment

Comments

@tony1715
Copy link

tony1715 commented Jan 1, 2014

Hi,
Help required as my response message is getting printed twice.

I am pushing a string from my servlet to a HTML page, as follows

MetaBroadcaster.getDefault().broadcastTo("/*", dataString);

here dataString is a json string.

=======================++++++++++===========================
On Debugging the framework, I found that though the HTTPResponse body has only one message, ajaxRequest.onreadystatechange in jquery.atmosphere.js is called twice which is painting the same message twice.

I am using
transport: streaming,
jquery: jquery-1.9.0.js
atmosphere: jquery.atmosphere.js (Atmosphere 2.0.3 api)

I also tried using atmosphere.js but still no success.

Thanks in advance

@jfarcand
Copy link
Member

jfarcand commented Jan 6, 2014

Please use the mailing list for question. Please make sure you are able to reproduce the issue using one of our sample.

@jfarcand jfarcand closed this as completed Jan 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants