stephenmcd/django-socketio — Issue #16: Messages aren't being sent in example project
Author: philipn
Created: 2012-02-02 02:43:22+00:00
State: open

1. Install django-socketio via setup.py install (latest HEAD)
a. Fix django-socketio as described in ticket #15.
2. Run python manage.py runserver_socketio in one terminal
3. Run python manage.py runserver in another
4. Navigate to http://127.0.0.1:8000/
5. Create a room
6. Type something into the text box and press enter.

Result: nothing happens. No output in either terminal.

When adding a room I see this:

127.0.0.1 - - [2012-02-01 20:22:25] "Socket.IO message: ['__subscribe__', 'room-11']"

I see an error about a missing file -- a request to /socket.io/lib/vendor/web-socket-js/WebSocketMain.swf. (should that also be fixed?)

I fix (I think?) the swf issue by downloading that WebSocketMain.swf file from https://github.com/LearnBoost/socket.io-client and just hard-coding the path into the socket.io.js file.

After 'fixing' the swf issue, when I type something into the chat box and press enter I see, in the socketio server log:

127.0.0.1 - - [2012-02-01 20:40:39] "Socket.IO message: [{u'action': u'start', u'room': 9, u'name': u'this is a message typed into the chat box'}]"

I might be missing something obvious here. Tested in FF and Chrome latest.