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

broadcasting in IE8 are not getting update after the first broadcast #383

Closed
wrxri opened this issue May 29, 2012 · 6 comments
Closed

broadcasting in IE8 are not getting update after the first broadcast #383

wrxri opened this issue May 29, 2012 · 6 comments

Comments

@wrxri
Copy link

wrxri commented May 29, 2012

only after several broadcasting i can see update in the browser in ie8/9,
but in chrome it is right after the first broadcast.

@jfarcand
Copy link
Member

I don't think this is a bug. You need some padding to make Broadcast work with IE. How do you suspend the connection? Make sure you are doing AtmosphereResource.suspend(-1, true).

Also please add more information to this issue. All samples works with IE 8 so I really need more information (or share you war privately: jfarcand@apache.org). Thanks!

@wrxri
Copy link
Author

wrxri commented May 29, 2012

this is my suspend method
@produces("text/html;charset=ISO-8859-1")
@suspend(outputComments = false, scope = Suspend.SCOPE.REQUEST, period = 60, timeUnit = TimeUnit.SECONDS)
@get
public SuspendResponse importStatus()
{
broadcaster.setSuspendPolicy(1, Broadcaster.POLICY.FIFO);
SuspendResponse sr = new SuspendResponse.SuspendResponseBuilder().broadcaster(broadcaster)
.outputComments(false).build();
return sr;
}

@jfarcand
Copy link
Member

Must set ouputComments=true to make it work. Also don't mix the use of @suspend and SuspendResponse. Use one technique to suspend

@wrxri
Copy link
Author

wrxri commented May 29, 2012

what do i need to omit to use the @suspend technique

@jfarcand
Copy link
Member

Let's move the discussion to the mailing list. Send your questions there it will be easier for me to explain. Thanks

@wrxri
Copy link
Author

wrxri commented May 29, 2012

Ok, i will use just one technique .
also the ouputComments=true work fine and fix my problem,
now both IE8/9 and chrome work the same.
thanks.

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