Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I was getting this error, caused by installing the latest version of connect:
Caught exception: TypeError: undefined is not a function
TypeError: undefined is not a function
at Manager. (/Users/aswan/myproject/lib/socket-io-server.js:10:17)
at Manager.authorize (/Users/aswan/myproject/node_modules/socket.io/lib/manager.js:867:31)
at Manager.handleHandshake (/Users/aswan/myproject/node_modules/socket.io/lib/manager.js:743:8)
at Manager.handleRequest (/Users/aswan/myproject/node_modules/socket.io/lib/manager.js:570:12)
at HTTPServer. (/Users/aswan/myproject/node_modules/socket.io/lib/manager.js:116:10)
at HTTPServer.emit (events.js:70:17)
at HTTPParser.onIncoming (http.js:1514:12)
at HTTPParser.onHeadersComplete (http.js:102:31)
at Socket.ondata (http.js:1410:22)
at TCP.onread (net.js:354:27)
This error does not occur when you use a version of Connect < 2.0. I have updated the package.json to use version 1.8.7