[nodejs] problem with socket.io

2012-08-30 Thread Claudio Alvarado
hi people I try to use socket.io but I have this error XMLHttpRequest cannot load http://localhost:7070/socket.io/1/?t=1346294690161. Origin null is not allowed by Access-Control-Allow-Origin. this is my code: server.js var io = require('socket.io').listen(7070); io.sockets.on(connection,

Re: [nodejs] problem with socket.io

2012-08-30 Thread Mark Volkmann
My guess is that you are directly opening your HTML file from the file system in a browser instead of via a localhost URL. I think you need an HTTP server that works with Socket.IO and serves your static HTML file. You can use Express or Strata for that. I can send you an example of setting that