It's possible to serve the chat client inline (i.e. not in an iframe),
but it entails fancier apache configurations.
-Xavi
2011/5/23 Martin Gammelsæter <martingam...@gmail.com>:
If you want to continue using Python, you can take a look on Tornadio
- socket.io server implementation on top of Tornado framework.
I'm pretty sure you can integrate Tornadio with Django - access your
models, etc. I use Flask-like custom framework for non-realtime part
(port 80) and a separate Tornadio instance for the realtime part of the
application (port 8000) and it just works. Only special case should be
done for Opera - it does not support cross-domain AJAX calls and does
not have websockets enabled by default. For opera you'd have to have
workaround of proxying requests from your web frontend to your socket.io
server based on URL mask and have some checks on the client side to not
go to port 8000 if it is Opera.
As for the short question: just pass 'port' parameter to the socket
constructor. Like:
var socket = new io.Socket(this.address, {
port: 8000
});
Serge.