FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Updated chat example (thanks saikat) · reivax/Socket.IO-node@e9ffd89 · GitHub

Repository navigation

Commit e9ffd89

Browse files
committed
Updated chat example (thanks saikat)
1 parent 757337f commit e9ffd89

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎example/chat.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
return msg.replace(/</g, '&lt;').replace(/>/g, '&gt;');
3131
};
3232

33-
var socket = new io.Socket(null, {rememberTransport: false, port: 8080});
33+
var socket = new io.Socket(null, {port: 8080});
3434
socket.connect();
35-
socket.addEvent('message', function(data){
35+
socket.on('message', function(data){
3636
var obj = JSON.parse(data);
3737

3838
if ('buffer' in obj){

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL