From b92ca9530e3a46cdfc3bbfd81feeb675d6cbc3b5 Mon Sep 17 00:00:00 2001 From: Wesley Lima Date: Tue, 10 Dec 2013 13:47:08 -0200 Subject: [PATCH] Fixed description method to connect to the server nodejs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ce93dd8d7..bcae5cf61 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Add `socket.io-client` to your `package.json` and then: ```js - var socket = require('socket.io-client')('http://localhost'); + var socket = require('socket.io-client').connect('http://localhost'); socket.on('connect', function(){ socket.on('event', function(data){}); socket.on('disconnect', fucntion(){});