|
Project Information
Links
|
websocket sample (for pywebsocket)what's this?This project provides sample code for Websockets. Samples are based on Apache HTTP server and mod_pywebsocket (fantastic websockets imprementation for apache developer!!), so other websocket servers are out of scope here. I also intend to figure how to install mod_pywebsocket and other tips. Websockets pipeline'll make faster web services!!
Sorry, these demonstrations are described only Japanese now. But, simply click "via ws" and "via xhr", you'll feel it! (I'll describe in English). These sites require websocket supported browsers, ie chrome4+ or webkit nightly builds. text-mining demonstration with handreds of japanese sentences. blogs and articles about this demonstrations.HTML5 Web Sockets and the Need for Speed!
contents
how to get samples?svn checkout http://websocket-sample.googlecode.com/svn/trunk/ websocket-sample-read-only not to use encodeURIComponent!!<!-- <lang = "ja"> --> web socketのコーディングでは、encodeURIComponent()は使うべきではありません。サイトをutf-8で構成し、メッセージはutf-8のままで送受信してください。<!-- <lang = "en"> --> In web socket coding, you should not use encodeURIComponent(). Site's encoding should be 'utf-8', and send & receive messages in raw utf-8 text. var message = 'もももすももももものうち'; ws.send(message); pywebsocket works like this figure
Useful links
|