jrief / django-websocket-redis

Websockets for Django applications using Redis as message queue
http://django-websocket-redis.awesto.com/
MIT License
895 stars 222 forks source link

is django-websocket-redis support bi-directional communication? #198

Closed logicnextPramod closed 8 years ago

logicnextPramod commented 8 years ago

Hi,

I'm going through the docs and chat example but from browser I can see messages are going through AJAX and receiving over web socket.

user_chat.html

// send message to the server using Ajax function sendMessage() { $.post('{% url "user_chat" %}', { user: $('#user').val(), message: $('#text_message').val() }); }

    // receive a message though the Websocket from the server
    function receiveMessage(msg) {
        billboard.append('<br/>' + msg);
        billboard.scrollTop(billboard.scrollTop() + 25);
    }
jrief commented 8 years ago

please ask questions or report bugs.