Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated JSON decoding

  • Loading branch information...
commit c4cf1b28f20d1d31f7d6786e18c08cd424b1cdb9 1 parent f5796c6
@rauchg rauchg authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  test/chat.html
View
2  test/chat.html
@@ -28,7 +28,7 @@
var socket = new io.Socket('localhost', {rememberTransport: false, port: 8080});
socket.connect();
socket.addEvent('message', function(data){
- var obj = io.util.JSON.decode(data);
+ var obj = JSON.parse(data);
if ('buffer' in obj){
document.getElementById('form').style.display='block';
Please sign in to comment.
Something went wrong with that request. Please try again.