Node.js: error GET http://undefined/socket.io/1/?t=1357634942292
Problem
I am running a Node.js app, while loading the url i am getting a error like below:
GET http://undefined/socket.io/1/?t=1357634942292
on trying to send a message another error is produced , which is
Uncaught TypeError: Object # has no method 'send'
EDIT: I have used a function
client.broadcast.send({ announcement: client.sessionId + ' connected' });
now the error arising is TypeError:Property 'broadcast' of object # is not a function
Can anybody help me out what might have gone wrong in here?
Cheers Jeev
Problem courtesy of: jeev
Solution
refer this it will be helpfull for you. Thanks
Solution courtesy of: Ayaz Ali Khatri
Discussion
View additional discussion.