Google Groups

server.js Error


alex Mar 27, 2011 11:52 AM
Posted in group: Ajax IM
Hi,

I'm trying to test socket-io branch.

When my webbrowser try to get http://testserver:31411/resume?callback=jsonp1301251418318&_1301251418318=

i got an error :


eeepc@eeepc-laptop:/home/www/test/ajaxim$ node server/server.js

/home/www/test/ajaxim/server/server.js:722
            request.setBodyEncoding('utf8');
                    ^
TypeError: Object #<IncomingMessage> has no method 'setBodyEncoding'
    at Server.<anonymous> (/home/www/test/ajaxim/server/server.js:
722:21)
    at Server.emit (events.js:45:17)
    at HTTPParser.onIncoming (http.js:1078:12)
    at HTTPParser.onHeadersComplete (http.js:87:31)
    at Socket.ondata (http.js:977:22)
    at Socket._onReadable (net.js:654:27)
    at IOWatcher.onReadable [as callback] (net.js:156:10)
eeepc@eeepc-laptop:/home/www/test/ajaxim$


Does anyone has encountered this problem?

Thanks