atmosphere-samples icon indicating copy to clipboard operation
atmosphere-samples copied to clipboard

Chat sample description regarding fallbacks is wrong

Open rikoe opened this issue 7 years ago • 0 comments

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.

rikoe avatar Nov 07 '16 10:11 rikoe