Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upHow to resolve TypeError: Cannot read property 'connected' of undefined #2192
Comments
|
Yor code its wrong, should be: io.on('connection', function (socket) {
socket.on('event', function(){
});
});For questions use stackoverflow, issues its for socket.io engine bugs/issues/errors. |
|
Please close this question listed as 'issue'. For questions please use stackoverflow. |
|
I have the same problem. I use exactly the same code from API https://github.com/socketio/socket.io#namespaceclientsfnfunction
TypeError: undefined is not a function |
|
That issue was closed automatically. Please check if your issue is fixed with the latest release, and reopen if needed (with a fiddle reproducing the issue if possible). |
|
you should use io.to(socketid).emit('user-already-joined',data) instead of io.sockets.connected[clients.socket].emit('user-already-joined',data); |
|
[Vue warn]: Error in render function: "TypeError: Cannot read property 'resolve' of undefined" found in ---> |
|
这是啥问题,求大神解答 |
|
@zzxBear none of socketio's problom |
Hi,I am getting the following error while using
socket.io version 1.3.5with node.js for my app.error:
And server file is given below.
server.js.
Please help me to resolve this error.