My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
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.
100 images(my lovely dog:)) download demonstration

blogs and articles about this demonstrations.

HTML5 Web Sockets and the Need for Speed!

HTML5 Web Sockets and Pipelining

Chrome 4.0でWebアプリはローカルアプリに近付くか


contents

  • How to install py_websocket ( ubuntu9.x ) link
  • Tips for websocket coding link
  • How to use samples link

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);

detail (see tips.)


pywebsocket works like this figure

Useful links

documents.

imprementation

jQuery plugin.

Powered by Google Project Hosting