발표자료: http://www.slideshare.net/kingori/ss-68326596
- socket io master zip 다운로드
- 서버가 ack 를 처리하도록 examples/chat/index.js 수정
```
socket.on('new message', function (data, ack) {
// we tell the client to execute 'new message'
socket.broadcast.emit('new message', {
username: socket.username,
message: data
});
if( ack) {
ack('ack');
}
});
```
```
$ cd socket.io
$ npm install
$ cd examples/chat
$ npm install
$ DEBUG=socket.io* node .
```