If you want something similar to this and you're on the JVM, you can use open source Atmosphere[1] which handles this flow exactly (websocket with fallback, multiple 'tags', etc).<p>[1] <a href="https://github.com/Atmosphere/atmosphere" rel="nofollow">https://github.com/Atmosphere/atmosphere</a>