Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://mysite.com/real/socket.io/socket.io.js Uncaught ReferenceError: io is not defined * * *Client side is as:*
<script src="socket.io/socket.io.js"></script> <script src="http://code.jquery.com/jquery-latest.min.js"></script> <script> // creating a new websocket var socket = io.connect('http://localhost:8000'); // on message recived we print the new data inside the #container div socket.on('notification', function (data) { var usersList = "<dl>"; $.each(data.users,function(index,user){ usersList += "<dt>" + user.UserStatus + "</dt>\n" + "<dd>" + user.UserStatus + "\n" + "<figure> <img class='img-polaroid' width='50px' src='" + user.UserStatus + "' /></figure>" "</dd>"; }); usersList += "</dl>"; $('#container').html(usersList); $('time').html('Last Update:' + data.time); }); </script> When i perfomance server script *server.js* via command *node server.js* i get message: info - socket.io started null I must specify that i have installed modules *socket.io* and this modules are situated at dirrectory *node_modules* where is file server.js Hope for your help! Thank you! -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
