collabostarterプロジェクトで使用する簡易チャットアプリ Node.js v0.12.7 にて構築 最初の接続時にユーザ名を入力してチャットできます。 cookieにひも付けてユーザ名を保存するので、再接続の際もユーザ名の再入力不要 ユーザのデータはハッシュで管理しており、ユーザが明示的に退室しなければ、サーバ起動中はずっとデータが残ります。
(https://www.facebook.com/collabostarter)
(https://github.com/hatena-iti/socketio-sample.git) (http://qiita.com/hosomichi/items/66b309a6c3c20d910218)
git clone https://github.com/hiraokashi/collabostarterchat.git
cd collabostarterchat
node app.js