문제

I am using atmosphere jersey with redis broadcaster. When I keep enableProtocol:true in javascript, the first subscribe request is successful. But when I send next subscribe request I get Continuation Frame warning. I tested on Google chrome. I have attached the snapshothere.

What could the issue be?

It works when I keep enableProtocol:false. But then onDisconnect is not called in long-polling.

After some observation I found that the X-Atmosphere-tracking-id=0 in first request and in subsequent requests I get it as the tracking id of previous request.

How do I avoid this?

도움이 되었습니까?

해결책

You can try by manually setting the tracking-id to 0 before each subscribe.

$.atmosphere.uuid = 0

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top