Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Node.js: error GET http://undefined/socket.io/1/?t=1357634942292

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.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

Node.js: error GET http://undefined/socket.io/1/?t=1357634942292

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×