atmosphere-samples
atmosphere-samples copied to clipboard
Chat sample description regarding fallbacks is wrong
The chat sample description says the following:
This sample demonstrates the use of WebSocket (falling back to SSE and Long-Polling) using the @ManagedService annotation.
This is not correct/true. The sample only has one fallback transport configured (long-polling), as in most atmosphere samples.
The sample also demonstrates how to detect which transport are supported by the client and server by negotiating with the server.
This is also not correct/true. The sample does nothing of the sort. In fact, I couldn't find a single sample that does the above, despite this text being included on multiple samples.
I am trying to learn about fallbacks in atmosphere, how to configure them, and how to support more than just two fallbacks. But apart from the isolated code shown here (which I do not know how to integrate into my applicaton), I can't find any example of supporting multiple fallbacks.
The above code sample has the following text:
Download the atmosphere-chat to demo live.
I am not sure whether the atmosphere-chat demo included this code in an older version, but if you could include a sample that demonstrates detecting/falling back to multiple transports it would be much appreciated.