We have a chat that works by reading / writing to it the very messages that are displayed via the iframe with auto-update. How to make messages appear without updating, i.e. dynamically, ajax. You can also translate it into a database, but in any of the cases how to make a dynamic discovery?

For:

<шframe class="windows_chat" src="chatting.php" width="100%" height="450px" onload="this.scrollBottom = 9999;">..<..frame> 

It seems, I tried, but I can not automatically upload: https://cloud.mail.ru/public/bdf757e8b403/create.js

    2 answers 2

    WAMP is a bit more advanced than socket.io, a WebSocket protocol. For the simplest chat does not make a fundamental difference.

    WAMP implements the Pub / Sub pattern, and uses pure tcp or any available bidirectional reliable transport that supports messages.

    Sample chat on crossbar.io

      Chat on node.js + socket.io

      http://socket.io/demos/chat/

      • @webphp, Try to write more detailed answers. Explain what your statement is based on. - Nicolas Chabanovsky