For the sake of sports interest asked these questions. What if the browser does not support websocket and COMET does not roll? What solutions exist?

PS The topic of using sockets is not disclosed in this issue.

    2 answers 2

    There is such a developer Alvaro Videla , who wrote the library gifsockets and uses the GIF format as a transport.

    The idea is that in the format of an animated GIF, the number of frames is not indicated, so after displaying the picture, the browser waits for new frames from the server until it receives signal bits about the end of the file. In other words, the server can push messages to the browser over an open channel in the GIF.

    After reading this article, my brain exploded, for those who are not aware I wanted to share, the paranoid come in handy :)

      https://github.com/TooTallNate/Java-WebSocket there is an implementation in flash, it works fine